How to call typeof operand with parentheses?

 Posted by vishalneeraj-24503 on 1/3/2015 | Category: JavaScript Interview questions | Views: 1726 | Points: 40
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 

Comments or Responses

Login to post response