+ 2
Can someone explain this line of code to me? var distance = parseInt(readLine(), 10);
3 odpowiedzi
+ 1
readLine() get input from user as string...
parseInt(string, base) convert string to (whole) number using base...
so distance expect input entered as base 10 (whole) number ^^
+ 3
Thank you my friend
+ 1
var means variable that means distance is a variable taken by you