The TypeOf function is an important tool when dealing with complex code. It allows a programmer to quickly check a variable’s data type—or whether it’s “undefined” or “null”—without going through the code line by line ! Additionally, the TypeOf function can also check whether an operand is an object or not.8 May 2019