Immutability in JavaScript
Vložit
- čas přidán 24. 07. 2021
- This video explains the difference between Mutable and Immutable in JavaScript and how this is connected to:
- const vs let
- primitives vs objects
- Object freezing and sealing
- Object chaining
- Proxies
- new upcoming JavaScript DataTypes
Videos referenced during tutorial:
Object Freeze and Seal:
• Object seal, freeze, a...
Shallow vs Deep copy:
• Deep Copying vs Shallo...
Chaining Methods:
• Spread, Shallow Copies...
Thank you Mr Steve for the detailed explanation. Waiting for the next video.
As usual, great tutorial. You are my visual/video documentation, reading documentation can be tricky. Thank!
Thank you, amazing content and explanation as usual!
Also wanted to add that I really benefited from your pub-sub pattern tutorial, and understanding it helped so much with learning Redux. Plus I also got asked about it in job interviews (along with immutability in JS).
I know you have a long list of topics you want to cover, I just hope more design patterns are on it as well, just throwing it out there. 🙂
Thanks, professor!
that makes much more sense now. Thx, amazing content as usual :)
These Are the basics, very well explained and in detailed. 👍
This is gem
Thank you. Your videos really help.
Thanks brother really good content 👍
Great Video!
Thanks clearly explained!
thank you sire
great and concise explanation
Thank you sir.
Thank you, professor, quality contest as always.
I have one question regarding those new Data Types. Where do you get to see the proposed changes? Is there any documentation for it like we've RFCs for network protocols?
One of the places you can look is here - github.com/tc39/
I will have the Record and Tuple video out this week
Another great video, Steve! Thanks!
Question: Which video did you provide a suggestion for how to isolate code to prevent conflicts? I remember a variable called APP or something. Do you remember? Thanks!
I do that in lots of videos.
Here is one of the places I discuss it - czcams.com/video/exiC1Qsv5mc/video.html
@@SteveGriffith-Prof3ssorSt3v3 Thank you!
14:49 the summary of the lecture if anyone doesn't have the time.
Great video 😊
Also please make tutorial on angular material buttons with ripple effect with Vanilla JS
Sorry. I stopped making Angular videos years ago, when Angular went to version 2.
But I do have a video on CSS ripple effect - czcams.com/video/nHyOMw_utMs/video.html
Thank you for your explanation, cleared a lot of things i was struggling with!
A question tho, as primitives are just values, that we can't change. In javascript, let's say i create a let number = 5, if i change it like number = "five", would javascript create a new variable with a string primitive type variable instead and eliminate the old one?
With a primitive in the variable, you are replacing one value with the other.
😊👍
Could you please explain the concept regarding value types being immutable a bit more. Based on the explanation it looked like a type is immutable when its contents cannot be changed. However for e.g. if we have an int we can change its value from 5 to 6 or any other number. Then how come its immutable?
These might help you.
czcams.com/video/duyshh9Fs1U/video.html
czcams.com/video/eBaW3vW8FUE/video.html
a question . "use strict" for me doesn't work as you said it doesn't cause error . is it because of running codes in browser and in node it gives error or i am wrongdoing?
tnx for all content generally🙂
use strict was something that was introduced back around ES5 when new things like const and let were being introduced. It was a way to make old JS have the same restrictions as the newer JS. Not really used much any more.
Another hidden lesson - never set your microphone on your desk when creating tutorial videos. ;)
It's not. :)