Mutability vs Immutability in JavaScript

Mutability vs Immutability in JavaScript

Cloudaffle

3 года назад

17,411 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

AM1N_DLT
AM1N_DLT - 16.03.2022 02:32

Underrated channel

Ответить
Lambo
Lambo - 05.10.2023 04:25

Great explanation.

Ответить
Youssef Tawfik
Youssef Tawfik - 20.06.2023 20:46

i rarly comment but you are great sir keep it on

Ответить
Shakil Kamran- The Coding monster
Shakil Kamran- The Coding monster - 14.05.2023 06:32

Well explained

Ответить
Ashique Desai
Ashique Desai - 18.02.2023 08:35

Great video! Subscribed!

Ответить
ibrahim youssef
ibrahim youssef - 15.02.2023 23:51

I am amazed at the beauty and clarity of the explanation. Thank you very much , keep going

Ответить
MrChubib0
MrChubib0 - 26.11.2022 11:41

wow this is so simple to follow! thanks

Ответить
see you
see you - 01.11.2022 00:39

Cleared my concept in 7mins instead of reading 100's of lines...thanks

Ответить
Victor Manuel Sandon Poma
Victor Manuel Sandon Poma - 19.10.2022 07:12

Like & suscribe

Ответить
Ashadul Mridha
Ashadul Mridha - 17.10.2022 10:34

Great Video .. Good works

Ответить
Tech4 long
Tech4 long - 31.08.2022 16:35

Maraming salamat po

Ответить
Emad uddin
Emad uddin - 02.08.2022 23:22

Really awesome.

Ответить
Dmtreaqq Pavlov
Dmtreaqq Pavlov - 24.05.2022 12:36

The author showed the wrong example of string's immutability. It only shows that STRING are PRIMITIVE type, but it is not about immutability.
Example of string immutability:

const str = "Hello"
str[0] = "B"
console.log(str); // Hello

Ответить
Kibirige John
Kibirige John - 14.03.2022 16:56

Nice content !! Thanks.

Ответить
Mahbub Rashid Tonoy
Mahbub Rashid Tonoy - 08.02.2022 17:07

Thank You For Your Great Explaination

Ответить
Mahbub Rashid Tonoy
Mahbub Rashid Tonoy - 08.02.2022 15:44

Thank You Sir!

Ответить
Patel in Canada
Patel in Canada - 31.01.2022 13:25

BEST EXPLANATION⚡️🙌🏻

Ответить
Denis Karpov
Denis Karpov - 23.01.2022 11:45

You do a big mistake. Array and Function are Object. They are a subtype of Object

Ответить
Yoni Toubul
Yoni Toubul - 18.01.2022 15:08

fantastic

Ответить
Nicolas Cacace
Nicolas Cacace - 25.11.2021 06:56

Making a change to either Variable representing the person Object doesn't change 'person1' and 'person2' at the same time - It changes ONCE what both Variables are referencing. This is a HYPER important distinction. It's not going through 100,000 objects and changing their values 100,000 times it's just changing the value 1 time that 100,000 objects are pointing to.
ALSO
It would be a good time to explain how to CLONE an object so that you CAN treat them as two separate entities if you so desire.

AND
Objects, Arrays and Functions...Really? Arrays and Functions ARE Objects (in JavaScript); thus strictly speaking there is really ONLY ONE Reference type, Objects with Arrays and Functions being a subset of Objects (as are Dates, Math Objects and Regular Expressions too - but these are tied to the compiler as a special type of 'constant' thus they can't be corrupted).

Ответить
Mark
Mark - 08.11.2021 02:55

awesome

Ответить
waleed valencia
waleed valencia - 17.10.2021 14:21

good work keep going 👏👏👏

Ответить
Mahmoud Hassen
Mahmoud Hassen - 11.10.2021 19:46

I've heard a lot about concepts like "primitive & reference" types and "mutability & immutability" in JS but never understand them thoroughly until now. Your way of explanation is simple and understandable. Thank you for sharing!

Ответить
Priyadharshini V
Priyadharshini V - 03.10.2021 17:02

Thanks for giving such a clear explanation !! This video is really helpful for developers in identifying errors caused by mutability.

Ответить
Miguel Jurado
Miguel Jurado - 02.10.2021 03:15

Such a great explanation bro! thanks a bunch.

Ответить
Muhammad Umar
Muhammad Umar - 01.10.2021 10:08

Very Very Well Explained
Thank you Soo much Dear

Ответить
Brayan Duque
Brayan Duque - 12.09.2021 03:22

Thanks so much!

Ответить
Michelle Sambiase Campos
Michelle Sambiase Campos - 24.08.2021 18:22

thank you, great explanation !!

Ответить
Michael Galindo
Michael Galindo - 24.07.2021 03:02

This is a good beginner's introduction. Well done video!
More info: cloning / copying objects and arrays really has no shortcut in JS. Properties that are objects will still be referenced, not copied. And since objects can have circular references, even writing an algorithm to handle it is non-trivial.
(Then there's the really weird stuff like proxies, non-enumerated keys, copying the prototype chain, etc.)

Ответить
Daniel Abdon
Daniel Abdon - 19.07.2021 04:02

Thanks, my friend. I am learning functional programming and this immutability concept has been very hard to get used to. Your video helped me a lot!

Ответить
uncristobalito
uncristobalito - 13.07.2021 23:45

Wow thanks for the video, it helped me so much! :D

Ответить
Hobbes
Hobbes - 14.06.2021 16:42

What an under-watched channel, I didn't expect much because of the low view count (470?!), but this is of the same quality as much larger channels, I think you will blow up soon just keep making videos of this quality.

Ответить
p n
p n - 16.05.2021 10:03

Drop the fake accent

Ответить
Venkat Tharun Chowdary
Venkat Tharun Chowdary - 30.03.2021 10:29

Great explanation

Ответить
Paul Gallovich
Paul Gallovich - 28.03.2021 20:33

This is a great video and really solidified my understanding of this concept. Please keep producing these videos they are excellent. Thanks so much!

Ответить