REFERENCE AILISING :
var a = [1,2,3,4,5]
var b = a
b.pop()
console.log(b)
console.log(a)
Output Expected : b = [1,2,3,4] and a=[1,2,3,4,5]
Actual output : b = [1,2,3,4] and a = [1,2,3,4]
The question arises why this happens.
It is very simple, in j...