- can change type of data at runtime , dynamically typed language What is Programming: a way to communicate with computer , telling computer what to do
- ECMA Script : standard of js , to add any feature in js we add in ECMA
- execute :: in browser
- at run time : node.js outside the browser
- inside html document using script tag
- REPLIT : a platfrom to run js
- containers to store different types of data
- variable starts with $, _ , letters
- case sensitive language
- let,var,const used to declare variables
- let a= 67
- var: pre es6 var intoduces bug in the code
- const :constants let : block scoped variable
let a= 67
console.log(a)
NN BB SS U
let e = null;
let f = 456;
let u = true ;
let g = BigInt("5");
let v = "harry "
let k = Symbol("thi is a symbol")
let y = undefined;
console.log(typeof(g))
null explicitly has nothing in it.
undeefined : kuch ditta hini or (let g ALONE )
OBJECTS: KEY VALUE PAIRS
const items={
"harry" : true,
"rohan": false,
}
console.log(items.harry)