Mar 20 in JavaScript
Q: Which of the following number object function returns the value of the number?

a) toString()

b) valueOf()

c) toLocaleString()

d) toPrecision()

1 Answer

0 votes
Mar 20

Answer: B

Reason: The method " valueOf()" returns the value of the parameter that was passed in it.

Related questions

0 votes
Oct 19, 2019 in JavaScript
0 votes
Jan 31, 2020 in Selenium