how to remove last digit from number in javascript

Solutions on MaxInterview for how to remove last digit from number in javascript by the best coders in the world

showing results for - "how to remove last digit from number in javascript"
Josué
21 Aug 2019
1            var str = "stackoverflow";
2            str = str.substring(0, str.length - 1);
3            console.log(str);