Hiw is the js method parseInt() used | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 2

Hiw is the js method parseInt() used

5th Jan 2020, 11:16 AM
Alfred Juma
Alfred Juma - avatar
2 Réponses
+ 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