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
//you can run this program by using the command => node program2.js
// keywords -> reserved words for specific reasons. example -> for,while, do while, if, else, else if, break, try,catch, function, var, const, let etc.
// data type
// primitive data type - String, Number (int,float,double), Boolean, Undefined, Null
// Reference data type - Array, Object.
// use typeof() to check the data type
// comment -> single line comment, double line comment
//This is a single line comment
/*
This is
multiple line
comment
*/
console.log(typeof123);
console.log(typeof123.5);
console.log(typeof"123");
console.log(typeoftrue);
console.log(typeoffalse);
//collected from w3school's website
varcar;// Value is undefined, type is undefined
varcar="";// The value is "", the typeof is "string"