0

How to do type casting in JavaScript?

13th Jul 2017, 1:17 PM
Aryan Gupta
Aryan Gupta - avatar
2 Answers
+ 4
.toString() and .valueOf() methods of any object, Number() object constructor, parseInt() and parseFloat() function... and implicit ways such as: var s = ""+42; ... and so on ^^
13th Jul 2017, 1:30 PM
visph
visph - avatar
- 2
,😂
17th Oct 2017, 5:19 AM
Ashish Singh Negi
Ashish Singh Negi - avatar