Answers for "parseint typescript"

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
11

typescript string to number

var x = "32";
var y: number = +x;//the "+" converts string to number
Posted by: Guest on August-13-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language