Categories

Oct 19, 2019 in JavaScript
Q: How typeof operator works?

1 Answer

Oct 19, 2019

The typeof is a unary operator that is placed before its single operand, which can be of any type. Its value is a string indicating the data type of the operand.

The typeof operator evaluates to "number", "string", or "boolean" if its operand is a number, string, or boolean value and returns true or false based on the evaluation.

Click here to read more about JavaScript
Click here to read more about Insurance

Related questions

Madanswer
Mar 12 in JavaScript
Jun 23, 2019 in PHP
Jul 14 in Python
...