The video is very informative. You should include a visual evidence of the primitive data type being immutable. Same thing with object and array. I like how you make the connection to the memory instead of the value itself. It helps explain what is going on behind the hood in JavaScript. If you can show an updated video with actual example that would be grateful.
Thank you! In the description of the video, I have a link to some code that demonstrates immutability. It defines a variable of each data type (primitive, array, object) as a property of another object. It then demonstrates when the setter is called (code sees the value as changed) and when it isn't. Please see the video description for the link.
so glad i found your channel. thank you for your clear explanations. one question though: when creating a new object by using the spread operator and the original object contains an array, i would copy the reference of the array, wouldn't I? So maybe I should figure out a combination of using the spread operator to treat the object as immutable and the with() method for the array. Or am i on the total wrong track?
one question : i've read that dynamic arrays (which we use in javascript) create a new array in memory in case of adding new value which would exceed the length of the array , so does that mean that sometimes the address of the array change ?
Hi Deborah, been following you since 2020, have watched all of your Angular courses on Plural sight, my request and I believe this is currently the hot topic: Next.js, pls make a series on this..
Detailed simple explanation of why immutability is important. Thank you 👍
So nice of you to say. Thank you for watching!
So important topic explained by @DeborahKurata!!!
Thank you!
Nice, this was a really good explanation why immutability is important, thank you :)
Thank you! Glad it was helpful!
Simple yet informative.
Glad it was useful!
perfect timing! i was just dealing with a bug related to this topic
Great! Glad to hear it was useful!
The video is very informative. You should include a visual evidence of the primitive data type being immutable. Same thing with object and array. I like how you make the connection to the memory instead of the value itself. It helps explain what is going on behind the hood in JavaScript. If you can show an updated video with actual example that would be grateful.
Thank you!
In the description of the video, I have a link to some code that demonstrates immutability. It defines a variable of each data type (primitive, array, object) as a property of another object. It then demonstrates when the setter is called (code sees the value as changed) and when it isn't. Please see the video description for the link.
Great video again, now i know why immutability is important. Thank you!
Glad it was helpful! Thanks!
so glad i found your channel. thank you for your clear explanations. one question though: when creating a new object by using the spread operator and the original object contains an array, i would copy the reference of the array, wouldn't I? So maybe I should figure out a combination of using the spread operator to treat the object as immutable and the with() method for the array. Or am i on the total wrong track?
Thanks a million I think immutability now became a piece of cake Thanks @Deborah
Great! Thank you!
slice performs a shallow copy of the array and it can be modified in future, so i think it should come under the mutable column
Awesome explanation
Thank you!
doing god's work Kurata, thanks!
😊 Thank you for watching!
Thank you so much!! Very clear explanation❤❤
Thank you. Glad it was helpful!
one question : i've read that dynamic arrays (which we use in javascript) create a new array in memory in case of adding new value which would exceed the length of the array , so does that mean that sometimes the address of the array change ?
This answer may be useful: stackoverflow.com/a/20323491
Hi Deborah, been following you since 2020, have watched all of your Angular courses on Plural sight, my request and I believe this is currently the hot topic: Next.js, pls make a series on this..
Thank you for the suggestion!
How to get value of p variable by prev address x?
Bravo!!
Thank you!
As usual great job ❤
Thank you so much!
you explain really well, thank for that.
Thanks for watching!
very informative and well descriptive tutorial video. Hope you will give us more and more informative and well descriptive tutorials .❤
Thank you! 😊
thank a lot, That's so useful
Thank you!
you are the best Thanks a lot
Thank you for watching!