JavaScript Data Types Introduction Question #21478
Single Choice Easy

QWhat does the JavaScript "typeof" operator return for a variable of the "undefined" primitive data type?

ID: #21478 Data Types Introduction 124 views
Question Info
#21478Q ID
EasyDifficulty
Data Types IntroductionTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A "number"
  • B "undefined"
  • C "string"
  • D "boolean"
Correct Answer

Explanation

The "typeof" operator in JavaScript returns the string "undefined" when applied to a variable of the "undefined" primitive data type. It is a tool for dynamically determining the type of a given variable.

Share This Question

Challenge a friend or share with your study group.