What is parseInt | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is parseInt

18th Dec 2017, 8:59 AM
Napster
Napster - avatar
2 Answers
+ 7
parseInt function converts string to integer.. More on parseInt https://www.w3schools.com/jsref/jsref_parseint.asp
18th Dec 2017, 9:08 AM
Md. Nafis Ul Haque Shifat
Md. Nafis Ul Haque Shifat - avatar
+ 1
A method of Integer class in JS which takes String as parameter and convert it to Integer. Different languages have this functionality, however with different signature like Int.Parse().
18th Dec 2017, 9:10 AM
Hamidreza
Hamidreza - avatar