typeof operand OR typeof (operand)
Input: typeof "geeksforgeeks" Output: string Input: typeof NaN Output: number NaN is also considered as a number.
string number boolean number object object object function undefined object
- Ternary operator vs Null coalescing operator in PHP
- PHP | $ vs $$ operator
- PHP 7 | Spaceship Operator
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.