Computer Science, asked by 400004013, 10 days ago

Answer the following questions.
1. Describe the use of parselnt() and toString() with an example.​

Answers

Answered by jyotirmoykashyap73
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 anshyt7499
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