how to remove last character of a string in javascript code example
Example 1: javascript remove last character in a string
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);
Example 2: js omit last string
"somestring0".slice(0, -1)
// "somestring"