DevJourney

Javascript/30DaysofJS/typeof.js

/* The fuction of this js is to log the data types
To check the data type of a certain variable, 
we use the typeof operator. See the following example. */
console.log(typeof 'Asabeneh') // string
console.log(typeof 5) // number
console.log(typeof true) // boolean
console.log(typeof null) // object type
console.log(typeof undefined) // undefined
View on GitHub