Single Choice
Easy
QWhat is the result of the following code?
var num = 10;
console.log(typeof num);
ID: #4881
Javascript Data Types MCQ
245 views
Question Info
#4881Q ID
EasyDifficulty
Javascript Data Types MCQTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
The typeof operator in JavaScript returns a string indicating the type of the operand. In this case, the operand is the variable num, which has been assigned the value of 10, which is a number. Therefore, the typeof operator will return "number".
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic