typeof returns the type of a variable:
typeof
let x = true; document.write(typeof(x));
Output: boolean