remove last comma join javascript code example
Example 1: javascript remove last character from string
var str = "Hello";
var newString = str.substring(0, str.length - 1); //newString = Hell
Example 2: remove last character from string javascript
console.log(parseFloat('12345.00').toFixed(1));