1let str = "12345.00";
2str = str.substring(0, str.length - 1);
3console.log(str);
1const array = [2, 5, 9];
2
3console.log(array);
4
5const index = array.indexOf(5);
6if (index > -1) {
7 array.splice(index, 1);
8}
9
10// array = [2, 9]
11console.log(array);
1/* JavaScript (JS) is a lightweight, interpreted, or just-in-time compiled programming language with first-class functions.
2While it is most well-known as the scripting language for Web pages, many non-browser environments also use it, such as Node.js, Apache CouchDB and Adobe Acrobat. */