var str = 'hullo world!';var newStr = str.substring(0, str.length-1);alert(newStr);// alert hullo world
No comments:
Post a Comment