in JavaScript by
Q:
How typeof operator works?

► Click here to show 1 Answer

0 votes
by

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.

JavaScript
Learn More with Madanswer

Related questions

0 votes
asked Oct 19, 2019 in JavaScript by SakshiSharma
...