Question:What is the function of 'typeof' operator in JavaScript?
Answer
The 'typeof' operator in JavaScript allows us to probe the data type of its operand, such as whether a variable is string, numeric or even undefined or null.