Immutability in JavaScript

  Рет қаралды 7,240

Steve Griffith - Prof3ssorSt3v3

Steve Griffith - Prof3ssorSt3v3

Күн бұрын

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...

Пікірлер: 31
@rajesht9702
@rajesht9702 3 жыл бұрын
Thank you Mr Steve for the detailed explanation. Waiting for the next video.
@tochimclaren
@tochimclaren 3 жыл бұрын
As usual, great tutorial. You are my visual/video documentation, reading documentation can be tricky. Thank!
@gauravkalita143
@gauravkalita143 5 ай бұрын
This is gem
@Sarmadfarhankhan
@Sarmadfarhankhan 3 жыл бұрын
These Are the basics, very well explained and in detailed. 👍
@ntsnamal5
@ntsnamal5 3 жыл бұрын
Thanks brother really good content 👍
@oah8465
@oah8465 3 жыл бұрын
that makes much more sense now. Thx, amazing content as usual :)
@asdadadadadasda
@asdadadadadasda 3 жыл бұрын
Great Video!
@nevenkosovec
@nevenkosovec 3 жыл бұрын
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!
@Spunky_Tx
@Spunky_Tx Ай бұрын
Make a lot of sense thank you sir
@sjshdhehbesjks
@sjshdhehbesjks 3 ай бұрын
thank you sire
@javascriptlearning5425
@javascriptlearning5425 3 жыл бұрын
Thanks clearly explained!
@allezzthepunk
@allezzthepunk 3 жыл бұрын
great and concise explanation
@abhim6380
@abhim6380 3 жыл бұрын
Thank you. Your videos really help.
@nwobodogeorge5370
@nwobodogeorge5370 3 жыл бұрын
Thank you sir.
@persiansayed
@persiansayed 3 жыл бұрын
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?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
One of the places you can look is here - github.com/tc39/ I will have the Record and Tuple video out this week
@thatsisjustcrazy8187
@thatsisjustcrazy8187 3 жыл бұрын
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!
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
I do that in lots of videos. Here is one of the places I discuss it - kzfaq.info/get/bejne/m96ZdpSC2NyZnZc.html
@thatsisjustcrazy8187
@thatsisjustcrazy8187 3 жыл бұрын
@@SteveGriffith-Prof3ssorSt3v3 Thank you!
@martyrd0m
@martyrd0m 3 жыл бұрын
Great video 😊 Also please make tutorial on angular material buttons with ripple effect with Vanilla JS
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 3 жыл бұрын
Sorry. I stopped making Angular videos years ago, when Angular went to version 2. But I do have a video on CSS ripple effect - kzfaq.info/get/bejne/pK6pgrCoxNvYfac.html
@prince5922
@prince5922 2 жыл бұрын
14:49 the summary of the lecture if anyone doesn't have the time.
@ivaldirbatalha5436
@ivaldirbatalha5436 Жыл бұрын
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?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
With a primitive in the variable, you are replacing one value with the other.
@benralph2574
@benralph2574 2 жыл бұрын
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?
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 2 жыл бұрын
These might help you. kzfaq.info/get/bejne/mtuppsuZnqzXYYk.html kzfaq.info/get/bejne/m6iRipanvJ6qhXk.html
@hamidRaven13
@hamidRaven13 Жыл бұрын
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🙂
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
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.
@hammadahmad5383
@hammadahmad5383 3 жыл бұрын
😊👍
@DanielBrownsan
@DanielBrownsan Жыл бұрын
Another hidden lesson - never set your microphone on your desk when creating tutorial videos. ;)
@SteveGriffith-Prof3ssorSt3v3
@SteveGriffith-Prof3ssorSt3v3 Жыл бұрын
It's not. :)
Closures, Currying and Partial Application
21:39
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 4,7 М.
Understanding the JavaScript Prototype Chain
21:45
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 12 М.
He bought this so I can drive too🥹😭 #tiktok #elsarca
00:22
Elsa Arca
Рет қаралды 11 МЛН
SPONGEBOB POWER-UPS IN BRAWL STARS!!!
08:35
Brawl Stars
Рет қаралды 23 МЛН
JavaScript Mutable vs Immutable
6:44
WittCode
Рет қаралды 1,4 М.
Checking for the Existence of JavaScript Variables
9:08
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 3,4 М.
Mutability vs Immutability in JavaScript
7:42
Cloudaffle
Рет қаралды 17 М.
Iterable vs Enumerable in JavaScript
9:15
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 20 М.
What is a JavaScript Reducer Function???
12:21
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 6 М.
JavaScript Pro Tips - Code This, NOT That
12:37
Fireship
Рет қаралды 2,5 МЛН
JavaScript for Beginners #16 - Mutability
13:44
Tech With Tim
Рет қаралды 13 М.
JavaScript ES6 Reflect Object
8:25
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 11 М.
Custom Events Dispatched from Web Components
20:32
Steve Griffith - Prof3ssorSt3v3
Рет қаралды 1,8 М.