Answer the following questions.
1. Describe the use of parselnt() and toString() with an example.
Answers
Answered by
3
Answer:
parseInt() is a JavaScript function that parses a string and returns an integer. ... If the argument value is not a string, it will be converted to one using the ToString abstraction method. radix - The radix represents the numeral system to be used. This can be a value between 2 and 36 .
Answered by
13
Answer:
toString() function is used to convert any type of data to string. eg :- toString(4) will convert 4 which is an integer to "4" which is a string.
parseint() do the opposite work if toString() function.
It converts string to integer.
Similar questions
English,
5 days ago
Math,
5 days ago
Social Sciences,
10 days ago
English,
10 days ago
Math,
8 months ago
India Languages,
8 months ago