1.

How many default number methods are available in JavaScript?(a) 5(b) 6(c) 7(d) 8This question was addressed to me in an interview for internship.The origin of the question is JavaScript Benchmarking and Logging with perfLogger topic in division Parsing, Benchmarking and Logging of JavaScript

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