let counter = 120; // counter is a number
console.log(typeof(counter)); // "number"
counter = false; // counter is now a boolean
console.log(typeof(counter)); // "boolean"
counter = "Hi"; // counter is now a string
console.log(typeof(counter)); // "string"Code language: JavaScript (javascript)
typeof("string"); //string
typeof(123); //number
var age = 18; // number
var name = "Jane"; // string
var name = {first:"Jane", last:"Doe"}; // object
var truth = false; // boolean
var sheets = ["HTML","CSS","JS"]; // array
var a; typeof a; // undefined
var a = null; // value null
typeof("iAmAString");//This should return 'string'
//NO camelCase, as it is a JS Keyword
typeof(variable)
var x = "Hello World";
typeof x; // "string"