+ 1

Newbie

Var distance = parseInt(readLine(), 10) What is parseInt and readLine mean?

24th Apr 2021, 7:57 AM
Niro Frankenstein
Niro Frankenstein - avatar
5 Respostas
+ 3
parseInt means integer or int. And readLine() means the method through which we take input through strings. So indeed it is converting string to int
24th Apr 2021, 8:20 AM
Atul [Inactive]
+ 2
Number() is similar to parseInt() : https://www.sololearn.com/post/115762/?ref=app 3 Ways to Output in a webpage: https://code.sololearn.com/W1jG7sDx95T6/?ref=app
24th Apr 2021, 8:34 AM
Gordon
Gordon - avatar
+ 1
Gordon has put off the example for it
24th Apr 2021, 8:36 AM
Atul [Inactive]
0
Atul is there any command or thing that similar to those two?
24th Apr 2021, 8:29 AM
Niro Frankenstein
Niro Frankenstein - avatar
0
Atul Gordon okay thxx for the explanation
24th Apr 2021, 8:37 AM
Niro Frankenstein
Niro Frankenstein - avatar