You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// 01. Create a variable.js file and declare variables and assign string, boolean, undefined and null data types, Display all the value with their data type.
// We can declare variable using the keywords let, var and const.
// String
let myName = "Sayantan";
console.log(myName, `Type of this variable is ${typeof myName}`);
// Boolean
let x = true;
let y = false;
console.log(x, `Type of this variable is ${typeof x}`);
console.log(y, `Type of this variable is ${typeof y}`);
// Undefined
let role = undefined;
console.log(role, `Type of this variable is ${typeof role}`);
// Null
let z = null;
console.log(z, `Type of this variable is ${typeof z}`);