31
How many default number methods are available in JavaScript?
Answer & Solution
Answer: Option
C
Solution:
There are a total of 7 default number methods in JavaScript namely :
1. constructor() 2. toExponential() 3. toFixed() 4. toLocaleString() 5. toPrecision() 6. toString() 7. valueOf()
1. constructor() 2. toExponential() 3. toFixed() 4. toLocaleString() 5. toPrecision() 6. toString() 7. valueOf()