Answers for "js do math from string"

6

intval js

parseInt(value);

let string = "321"
console.log(string); // "321" <= string

let number = parseInt(string);
console.log(number) // 321 <=int
Posted by: Guest on June-10-2020
3

reverse string js

const solution = (str) => str.split("").reverse().join("");
Posted by: Guest on June-19-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language