Javascript typeof Operator Question 1

Introduction

What is the output of the following code:


let var1 = undefined;
let var2 = null;
let var3 = "Test";
let var4 = 12345;
let var5 = {a:23,b:'3242'};
let var6 = true;

console.log(typeof var1 ); 
console.log(typeof var2 ); 
console.log(typeof var3 ); 
console.log(typeof var4 ); 
console.log(typeof var5 ); 
console.log(typeof var6 ); 
console.log(typeof var7 ); 


undefined
object
string
number
object
boolean
undefined



PreviousNext

Related