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
letmyName="Sayantan";
console.log(myName,`Type of this variable is ${typeofmyName}`);
// Boolean
letx=true;
lety=false;
console.log(x,`Type of this variable is ${typeofx}`);
console.log(y,`Type of this variable is ${typeofy}`);
// Undefined
letrole=undefined;
console.log(role,`Type of this variable is ${typeofrole}`);
// Null
letz=null;
console.log(z,`Type of this variable is ${typeofz}`);