Q. What will the following return?
Code:
typeof Infinity;
β
Correct Answer: (A)
number
Explanation: Infinity is of type number in JavaScript.
typeof Infinity;
Explanation: Infinity is of type number in JavaScript.