New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Hiw is the js method parseInt() used
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)
+ 2
Got it, thanks