Multiple choice technology web technology

Which function identifies the data type of the operand?

  1. isNumber()

  2. isString()

  3. typeof()

  4. Option 1 & 2

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The typeof operator in JavaScript returns a string indicating the type of the operand's value. It can return 'number', 'string', 'boolean', 'undefined', 'object', or 'function'. Functions like isNumber() and isString() are not built-in JavaScript functions.