Please correct me if i am wrong. Ans: 1) Identifiers are simply name of variables or functions 2) In short all variables are identifiers but not all identifiers are variables, variable is name of memory location and it hold some value where as identifier is used to identify something (variable or function) in code 3)valid identifier : $name 4) var x; x will be undefined 5) complex or reference data type - object 6) 8 data types : (number, null, string, symbol, boolean, bigint, object, undefined) question dete rhana har video me
Please correct me if i am wrong. Ans:
1) Identifiers are simply name of variables or functions
2) In short all variables are identifiers but not all identifiers are variables, variable is name of memory location and it hold some value where as identifier is used to identify something (variable or function) in code
3)valid identifier : $name
4) var x; x will be undefined
5) complex or reference data type - object
6) 8 data types : (number, null, string, symbol, boolean, bigint, object, undefined)
question dete rhana har video me
why don't you use let instead of var
I'll start using it after explaining them