No video

ES6 Tutorial #5: Mutable and Immutable Objects| Interview Question | Modern Javascript 2021

  Рет қаралды 16,873

Nisha Singla

Nisha Singla

Күн бұрын

Mutable and Immutable is one of the most important concept in javascript .
Mutable means which can change its value and
Immutable means which value can't be change once it is created. In javascript there are 2 ways the data stored . Either primitive or reference Type.
Primitive type means string, number, boolean, symbol, null, undefined these are stored at specific location in memory. So whenever you give any value to any of the primitive type, it always store its value at that location but on another hand reference type never store the value instead it store the address of that variable.
Array and objects are reference types
So Primitive types are immutable and reference types are mutable. So once you understand that in your code the value is mutable and immutable , you can save yourself from so many issues and errors.
So in this video I have explained difference between mutable and immutable and how you can convert your mutable type to immutable using ES6 Spread operator.
I hope you have liked this video. For such more video like and subscribe my
channel
DON'T CLICK HERE: shorturl.at/AFGJT
Mic used in my videos: amzn.to/3nqYF5A
Subscribe to my channel : / nishasingla
Watch Complete playlist on Javascript:
• ES6 Important Concepts
Video on Arrow function: • ES6 Tutorial #4: Arrow...
Video on Template Literals: • ES6 Tutorial #3: Templ...
Video on Promises: • Promises vs Observable...
Watch my Angular playlist :
Angular : • Introduction- Angular ...
Follow me:
Facebook: / angularjs4beginners
LinkedIn: / nisha-singla-82407aa0
Instagram : / passion4code
For more such interesting videos, please subscribe to my channel and stay connected.
#mutableAndImmutable​ #ModernJavaScript #NishaSingla

Пікірлер: 42
@user-gt1oq6kz6o
@user-gt1oq6kz6o Ай бұрын
Hi Nisha Singla, you are awesome, this video is really helpful. I loved it. Please keep on creating such videos. Thanks a lot. Again I tell you, you are awesome.
@swaroopk5713
@swaroopk5713 2 жыл бұрын
This person is teaching with great efforts in a hard way to understand with possible scenarios
@NishaSingla
@NishaSingla 2 жыл бұрын
Thanks for appreciating the efforts 🙏😊😊
@hi-yi7en
@hi-yi7en 2 жыл бұрын
Your selecting example s are really simple to understand... 👏👏.. started to watch your video s daily before go to bed.
@NishaSingla
@NishaSingla 2 жыл бұрын
Thank you
@mehmoodulhassan4042
@mehmoodulhassan4042 Ай бұрын
Very explicitly explained✨
@sivatirumani531
@sivatirumani531 2 жыл бұрын
My favorite channel for Angular. Thanks from Andhra Pradesh
@akiratoriyama1320
@akiratoriyama1320 3 жыл бұрын
Great content!! Thank you for all the hard work!
@NishaSingla
@NishaSingla 3 жыл бұрын
Thanks
@nishankarupasinghe2884
@nishankarupasinghe2884 10 ай бұрын
It was very clear! Thank you very much Nisha.
@Narendra12vidhi
@Narendra12vidhi 2 жыл бұрын
Awesome explanation....gr8
@NishaSingla
@NishaSingla 2 жыл бұрын
Thank you 😊
@sivachandra3969
@sivachandra3969 2 жыл бұрын
Excellent explanation madam. thanks for your information.
@deepaksinghbhailwal7615
@deepaksinghbhailwal7615 Жыл бұрын
You made thing's so easy that's why I am forced to like or comment 👍
@sajidahmad69
@sajidahmad69 3 жыл бұрын
I am hoping some more concept in Angular like Interceptor, JWT implementation etc.
@siavashpan
@siavashpan 2 жыл бұрын
Thanks for your videos. In this example you are using spread operators to create a new copy of the original array and object, and then applying changes to them. But that doesn't mean the original array and object are not immutable anymore. One can still make changes to them. I would think this is an example of what happens if an array or object are not copied correctly. Please let me know.
@johnkim7783
@johnkim7783 Жыл бұрын
This is a really nice video !
@Daily_Shorts515
@Daily_Shorts515 4 ай бұрын
Hi Nisha, great videos, could you please do scratch level of javascript videos if possible
@urvishagreat
@urvishagreat 3 жыл бұрын
awesome explanation.
@NishaSingla
@NishaSingla 2 жыл бұрын
Thank you 😊
@user-yi9pm3jj1q
@user-yi9pm3jj1q Жыл бұрын
excellent explaination
@abhimanranaweera1695
@abhimanranaweera1695 Жыл бұрын
Great explanation 👍
@vithleshagrawal9234
@vithleshagrawal9234 2 жыл бұрын
Nice explanation 😊😊
@letscode1388
@letscode1388 Жыл бұрын
Thank you ma'am. Well explained
@ashishnayak2666
@ashishnayak2666 3 жыл бұрын
Hi nisha, the intial part where you are showing the slides of mutable and immutable its wrong I believe because array and objects are mutable and strings and numbers immutable...pls check and if possible correct.
@NishaSingla
@NishaSingla 3 жыл бұрын
You are right.. My mistake , will fix that.. thanks for letting me know 🙏
@RZ009
@RZ009 3 жыл бұрын
Hi Nisha, Nice explanation. Could you please do a video about view encapsulation
@NishaSingla
@NishaSingla 3 жыл бұрын
Sure I will
@ndesimoniche7125
@ndesimoniche7125 Жыл бұрын
Thanks for this it help alot
@Dineshkumar-tx4fp
@Dineshkumar-tx4fp 3 жыл бұрын
Good super
@NishaSingla
@NishaSingla 3 жыл бұрын
Thank you 🙏
@DevJubayer
@DevJubayer 2 жыл бұрын
Thanks.
@harishv2210
@harishv2210 Жыл бұрын
thank you
@user-et4jf2me5l
@user-et4jf2me5l 3 жыл бұрын
Thank you very helpful
@NishaSingla
@NishaSingla 3 жыл бұрын
✌🏻✌🏻🙏
@vasanthapandiyanm2405
@vasanthapandiyanm2405 3 жыл бұрын
Nisha could you please post a video about interceptor in angular?
@NishaSingla
@NishaSingla 3 жыл бұрын
sure
@shantanujagadale7579
@shantanujagadale7579 2 жыл бұрын
@nisha It it same like deep copy and shallow copy object ? If not then what is the difference ?
@shamli026
@shamli026 2 жыл бұрын
Hi mam, If primitive data types are immutable then in below case will it be mutuable?Can you please explain let x = 20; let y = x++; console.log(x)//21 console.log(y)//20
@pradeepparas1473
@pradeepparas1473 Жыл бұрын
In your eg x++ means x = x + 1 And for y, x value which is 20 is assigned to y variable first and then x value is increment by 1
@shivamprasad-jm3bg
@shivamprasad-jm3bg 8 ай бұрын
this mam
#35 Mutable vs Immutable String in Java
6:23
Telusko
Рет қаралды 120 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 6 МЛН
Before VS during the CONCERT 🔥 "Aliby" | Andra Gogan
00:13
Andra Gogan
Рет қаралды 10 МЛН
Meet the one boy from the Ronaldo edit in India
00:30
Younes Zarou
Рет қаралды 19 МЛН
Mutability vs Immutability in JavaScript
7:42
Cloudaffle
Рет қаралды 17 М.
Understanding Immutability in JavaScript
9:41
Deborah Kurata
Рет қаралды 4,8 М.
Immer.js Crash Course - And Why Immutability Is Very Important ⚡
10:00
Mehul - Codedamn
Рет қаралды 17 М.
5 Must Know JavaScript Features That Almost Nobody Knows
18:06
Web Dev Simplified
Рет қаралды 475 М.
JavaScript Mutable vs Immutable
6:44
WittCode
Рет қаралды 1,4 М.
Immutability in JavaScript
15:13
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 7 М.
Nurse's Mission: Bringing Joy to Young Lives #shorts
00:17
Fabiosa Stories
Рет қаралды 6 МЛН