Hiw is the js method parseInt() used | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Hiw is the js method parseInt() used

5th Jan 2020, 11:16 AM
Alfred Juma
Alfred Juma - avatar
2 Answers
+ 3
That is how you turn for example a string to int var k = "123" var p = parseInt(k) #now p is 123 (the number), not "123" (the word)
5th Jan 2020, 11:19 AM
🍇 Alex Tușinean 💜
🍇 Alex Tușinean 💜 - avatar
+ 2
Got it, thanks
5th Jan 2020, 11:22 AM
Alfred Juma
Alfred Juma - avatar