string pop last char js code example
Example: string pop last char js
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell