Primitive vs Reference - What's the difference - JavaScript Bangla ( বাংলা ) Tutorial
14.9 هزار بار بازدید -
4 سال پیش
-
In JavaScript, a variable may
In JavaScript, a variable may store two types of values: primitive and reference. JavaScript provides six primitive types as undefined, null, boolean, number, string and symbol and one reference type called object. In this tutorial, you will learn the differences between primitive and reference values. While doing so, you will also learn some fundamental concepts such as memory allocation in stack and heap, master object, wrapper primitive types and function parameter pass by reference. You will also understand how to copy sensitive reference values immutably which will help you working with state management in popular JavaScript libraries like React, Vue etc.
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
1:19 - Simple Example
4:40 - Understanding the Concept visually
16:45 - Mutation vs Assignment with example
19:54 - Copy References immutably
22:46 - Copy nested References immutably
29:33 - Primitive Wrapper Type
34:24 - Primitives are not mutable
35:52 - Pass by Reference / Value
42:28 - Conclusion
Reference:
1. JavaScript Prototype - Prototype - the foundation of JavaScr...
2. Spread Operator - #17 - Spread Operator - Modern JavaSc...
3. JavaScript Scope - JavaScript Scopes - the ultimate weir...
4. lodash - https://lodash.com/
#primitive_reference #javascript #bangla_programming_tutorial
▬ Contents of this video ▬▬▬▬▬▬▬▬▬▬
0:00 - Intro
1:19 - Simple Example
4:40 - Understanding the Concept visually
16:45 - Mutation vs Assignment with example
19:54 - Copy References immutably
22:46 - Copy nested References immutably
29:33 - Primitive Wrapper Type
34:24 - Primitives are not mutable
35:52 - Pass by Reference / Value
42:28 - Conclusion
Reference:
1. JavaScript Prototype - Prototype - the foundation of JavaScr...
2. Spread Operator - #17 - Spread Operator - Modern JavaSc...
3. JavaScript Scope - JavaScript Scopes - the ultimate weir...
4. lodash - https://lodash.com/
#primitive_reference #javascript #bangla_programming_tutorial
4 سال پیش
در تاریخ 1399/07/06 منتشر شده
است.
14,980
بـار بازدید شده