Passing by reference vs. by value - JavaScript Tutorial
dcode
0:00 / 0:00
Passing by reference vs. by value - JavaScript Tutorial
22 858 просмотров · 7 лет назад
dcode
139 тыс. подписчиков
22 858 просмотров · 7 лет назад
In this video I'll be demonstrating the difference between passing by "reference" vs. passing by "value" in JavaScript.
To sum it up, arrays and objects are passed by reference whereas everything else is passed by value, and passing by value makes a copy of your data.
Support me on Patreon:
/ dcode - with enough funding I plan to develop a website of some sort with a new developer experience!
Follow me on Twitter @dcode!
If this video helped you out and you'd like to see more, make sure to leave a like and subscribe to dcode!