1.

How many default number methods are available in JavaScript?(a) 5(b) 6(c) 7(d) 8

Answer» Right answer is (c) 7

To elaborate: There are a total of 7 default number methods in JavaScript namely:

constructor()

toExponential()

toFixed()

toLocaleString()

toPrecision()

toString()

valueOf()


Discussion

No Comment Found

Related InterviewSolutions