+ 2

Data type

how to change one type into another?(in js) Ex."1"→1

30th Apr 2017, 1:39 PM
tim wong
tim wong - avatar
2 ответов
+ 3
x = parseInt("42");
30th Apr 2017, 2:22 PM
Burey
Burey - avatar
+ 1
var num = Number("1");
30th Apr 2017, 1:49 PM
Jeth
Jeth - avatar