Wednesday, May 20, 2020
Monday, May 18, 2020
Reference vs value - how JS stores variables
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
Subscribe to:
Posts (Atom)