Professional Documents
Culture Documents
const intersetRate = 0.3;
3. Primitive data types are string, number, boolean, undefined and null.
e.g.
let name = 'Subash'; //string literal
let age = 20; //number literal
let isOkay = true; //boolean literal
let firstName = undefined; //every unassigned variable is undefined in the
beginning.
let lastName = null; // used in situations where we want to explicitly clear the value
of // a variable.