Link Search Menu Expand Document

Use typeof to Check the Type of a Variable

Summary

  • typeof can be used to check the data type of a variable.

Final Code

let seven = 7;
let three = "3";
console.log(seven + three);
// Only change code below this line
console.log(typeof seven)
console.log(typeof three)