Passing by reference vs. by value - JavaScript Tutorial

Published: 23 January 2019
on channel: dcode
22,504
462

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!


On this page of the site you can watch the video online Passing by reference vs. by value - JavaScript Tutorial with a duration of hours minute second in good quality, which was uploaded by the user dcode 23 January 2019, share the link with friends and acquaintances, this video has already been watched 22,504 times on youtube and it was liked by 462 viewers. Enjoy your viewing!