Which method is not used for converting variables to number?

Which method is not used for converting variables to number?
A. parseInt()
B. Number()
C. parseFloat()
D. valueOf()
 
Answer: d
Explanation: There are mainly three methods with the help of those we can convert variables to numbers. The methods are the parseFloat() method, the Number() method, the parseInt() method. These are global JavaScript methods. valueOf() method return number as a number only.
 

Tìm kiếm

Back
Top