Understanding Immutability in JavaScript

Поделиться
HTML-код
  • Опубликовано: 8 сен 2024

Комментарии • 37

  • @jawwadalam
    @jawwadalam 8 месяцев назад +1

    Detailed simple explanation of why immutability is important. Thank you 👍

    • @deborah_kurata
      @deborah_kurata  8 месяцев назад +1

      So nice of you to say. Thank you for watching!

  • @karlee8608
    @karlee8608 7 месяцев назад

    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.

    • @deborah_kurata
      @deborah_kurata  7 месяцев назад

      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.

  • @elyoaprogrammer
    @elyoaprogrammer 8 месяцев назад +1

    So important topic explained by @DeborahKurata!!!

  • @ashutoshtiwari5222
    @ashutoshtiwari5222 8 месяцев назад +1

    Simple yet informative.

  • @RsPippen
    @RsPippen 8 месяцев назад

    perfect timing! i was just dealing with a bug related to this topic

    • @deborah_kurata
      @deborah_kurata  8 месяцев назад

      Great! Glad to hear it was useful!

  • @Sinan997
    @Sinan997 8 месяцев назад

    Great video again, now i know why immutability is important. Thank you!

  • @abnow1998
    @abnow1998 8 месяцев назад

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

  • @JJOhns-fy4tl
    @JJOhns-fy4tl 6 месяцев назад

    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?

  • @abdulrenishr
    @abdulrenishr 2 месяца назад

    Awesome explanation

  • @FuyadFuyad-ns6qg
    @FuyadFuyad-ns6qg 3 месяца назад

    very informative and well descriptive tutorial video. Hope you will give us more and more informative and well descriptive tutorials .❤

  • @codingSparrow143
    @codingSparrow143 3 месяца назад

    Thank you so much!! Very clear explanation❤❤

  • @hodasalah1663
    @hodasalah1663 8 месяцев назад

    you are the best Thanks a lot

  • @ngotienthien7939
    @ngotienthien7939 7 месяцев назад

    thank a lot, That's so useful

  • @ibmmsayskhiedr4220
    @ibmmsayskhiedr4220 8 месяцев назад

    Thanks a million I think immutability now became a piece of cake Thanks @Deborah

  • @farzadbahadorifar1126
    @farzadbahadorifar1126 6 месяцев назад

    you explain really well, thank for that.

  • @respostasimples
    @respostasimples 8 месяцев назад +1

    doing god's work Kurata, thanks!

  • @MarcoPinheiro
    @MarcoPinheiro 8 месяцев назад

    Bravo!!

  • @rs4267
    @rs4267 8 месяцев назад

    As usual great job ❤

  • @SolidWorksMastery-hr4sg
    @SolidWorksMastery-hr4sg Месяц назад

    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 ?

    • @deborah_kurata
      @deborah_kurata  Месяц назад

      This answer may be useful: stackoverflow.com/a/20323491