string pop last char js

JavaScript
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
Source

Also in JavaScript: