+ 29
parseInt(readLine(), 10) What is its use?
Can someone explain.. Its JS.
11 odpowiedzi
+ 128
readLine() means it'll take users input
parseInt() means it'll convert the String into Integer
parseInt uses two parameters, second one is optional.
Two parameters are:
parseInt(String, Radix)
The radix parameter is used to specify which numeral system to be used, for example, a radix of 16 (hexadecimal) indicates that the number in the string should be parsed from a hexadecimal number to a decimal number.
+ 3
Thanks
+ 1
Thank youuuu!!!!!
+ 1
thanx for your kind explanation!
+ 1
readLine() means it'll take users input
parseInt() means it'll convert the String into Integer
parseInt uses two parameters, second one is optional.
Two parameters are:
parseInt(String, Radix)
The radix parameter is used to specify which numeral system to be used, for example, a radix of 16 (hexadecimal) indicates that the number in the string should be parsed from a hexadecimal number to a decimal number.
0
Very helpful. thanks.🙌
0
Great!.
0
thanks
0
thank you so much!
0
Thank bro that was confusing function in JavaScript!
0
but what if the readLine returns an error message that says is not defined. where to define it