Section 5: Map, Set, WeakMap, WeakSet and how JS stores stuff
value and reference
variable can be stored by value or by reference
All datatypes in javascript are either primitives or objects
above pic uppercase
console 2 changed but 3rd not bz value of vairlble cant change
these are primitive value GARFIELD
primitives cant changed
get set methods in map
variable can be stored by value or by reference
console 2 changed but 3rd not bz value of vairlble cant change
get set methods in map
No comments:
Post a Comment