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

1 Answer

0 votes
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.

Related questions

0 votes
Jan 27, 2020 in JavaScript
+1 vote
Mar 22 in JavaScript
...