+ 2
30th Apr 2017, 1:39 PM
tim wong

2 Answers
+ 3
x = parseInt("42");
30th Apr 2017, 2:22 PM
Burey

+ 1
var num = Number("1");
30th Apr 2017, 1:49 PM
Jeth

Often have questions like this?
Learn more efficiently, for free:
how to change one type into another?(in js) Ex."1"â1