OMENSAH
11/6/2017 - 4:38 AM

immutableData.js

#primitive data types
var b = 8;
var c = b
c = 9
#output c=9 , b =8

#Referential dataTypes
var m = [2, 5]
var n = Object.assign([], m)
n.push(6)
#ouput  n = [ 2, 5, 6 ], m= [ 2, 5]