Simple But Most People Miss Out On This 😊 Small Tips And Tricks For Javascript :
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...
Jul 28, 20231 min read