how to remove last letter from string javascript code example
Example: javascript remove last character in a string
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);
var str = "Hello TecAdmin!";
var newStr = str.slice(0, -1);