Answer: As
typeof is an operand and not a function,that is the reason,the second method is actually not a function call.
Operation in parentheses are evaluated and then passed to typeof.
typeof(20);
Output :- number
typeof(true);
Output :- boolean
Asked In: Many Interviews |
Alert Moderator