0

ParseInt(readline() ) ;

What is the meaning of parseInt and readline(from javascript arithmetic operators lesson) explain please

4th Nov 2022, 3:10 PM
abi abitha
abi abitha - avatar
4 Respostas
+ 3
readLine() is a function of Node JS to get input values and it returns string So if you take input 10 then it would be considered as a string value but it is actually an integer value so we need to parse string value to integer value so here we use parseInt
4th Nov 2022, 3:13 PM
A͢J
A͢J - avatar
+ 1
abi abitha I already explained in my answer.
4th Nov 2022, 4:22 PM
A͢J
A͢J - avatar
0
Ok but readline means
4th Nov 2022, 3:29 PM
abi abitha
abi abitha - avatar
0
Ok thank you
7th Nov 2022, 9:45 AM
abi abitha
abi abitha - avatar