Value vs Reference in JavaScript - Primitive Types and Objects

preview_player
Показать описание
Beginning with JS programming can be difficult. Especially, when there are no good debugging options for beginners. One of the biggest pitfalls, is not knowing whether you are passing your function arguments by value, or by reference. This can be extremely annoying, when in rookie programming days, the best practices for system design are not well understood and therefore not correctly implemented.

Having side effect full functions, mutating function arguments that were passed by reference, could lead to night-stealing debugging session. That's why it's absolutely crucial for every JS developer, to understand the difference between the inbuilt datatypes, and how to correctly use them.

In this video, I will explain the difference between passing by value, and passing by reference in JavaScript.

Chapters
----------------------------------------
0:00 Primitive types
1:24 Objects
2:34 Passing by value
3:48 Passing by reference

#webdevelopment #coding #programming #software #developer #javascript #typescript #programmer
Рекомендации по теме