Q. Which of the following is used to detect the type of a variable?
β
Correct Answer: (A)
typeof
Explanation: typeof is used to check the data type of a variable or expression.