function main() { var x = parseInt(readLine(), 10);} | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

function main() { var x = parseInt(readLine(), 10);}

Can anyone tell me the meaning of this sentence?

31st Dec 2020, 6:45 AM
Atul [Inactive]
3 Answers
31st Dec 2020, 7:00 AM
Alphin K Sajan
Alphin K Sajan - avatar
+ 1
Atul Panda 10 represent decimal. So when you do parseInt with 10 then you get decimal number. 10 is optional. To get more knowledge check here https://www.w3schools.com/jsref/jsref_parseint.asp
31st Dec 2020, 8:57 AM
A͢J
A͢J - avatar
0
Sir why it is written 10,out there?
31st Dec 2020, 7:07 AM
Atul [Inactive]