Answers for "typsescript parse int"

11

typescript string to number

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

parseint function javascript

function convertToInterger(mystring) {

	return parseInt(mystring);

}

console.log(convertToInterger("42"));
Posted by: Guest on January-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language