InterviewSolution
Saved Bookmarks
| 1. |
Typeof “infinity” will return ___________(a) string(b) number(c) object(d) undefinedI have been asked this question by my college director while I was bunking the class.This interesting question is from Essential JavaScript and jQuery in portion HTML Tables, Javascript & Jquery Basics of HTML |
|
Answer» RIGHT choice is (B) number For explanation I would say: The typeof “infinity” will RETURN number. E.g. typeof Infinity; // it will return “number”, when we divide any number by zero it will generate infinity. |
|