LearnFast.Ninja

JavaScript string convert to int - Integer conversion example

Use the function parseInt and send string value as parameter. The result number assign to your var.

Use the function parseInt and send string value as parameter. The result number assign to your var.

var myNumber = parseInt("5");


Tags

javascript

parseint int integer