Remove Last Character off String
Let's say we want to move the trailing , off the line.
To do this we would need to do:
var myStr = "One, Two, Three, Four,"
var strLen = myStr.length;
myStr = myStr.slice(0,strLen-1);
alert (myStr);
or
myStr = myStr.slice(0,-1);
|