Get type of a variable `typeof`
Get the type of a variable using typeof
The typeof
operator returns a string indicating the type of the operandβs value.
console.log(typeof 12) // "number"
console.log(typeof 'open source') //"string"
console.log(typeof true) // "boolean"