1.

The integers in JavaScript are precise up to ___________(a) 12 digits(b) 10 digits(c) 23 digits(d) 15 digitsI had been asked this question at a job interview.Question is taken from Essential JavaScript and jQuery in chapter HTML Tables, Javascript & Jquery Basics of HTML

Answer»

Correct OPTION is (d) 15 digits

Easy explanation: The INTEGERS in JavaScript have accuracy up to 15 digits. E.g. var y=111111111111111; // value of y will be 111111111111111. For DECIMAL the MAXIMUM number of decimals is 17.



Discussion

No Comment Found

Related InterviewSolutions