ES6 Tutorial #9: Shallow vs Deep Copy| Interview Question| Modern Javascript 2021

Поділитися
Вставка
  • Опубліковано 18 гру 2024

КОМЕНТАРІ • 53

  • @dragons.2
    @dragons.2 8 місяців тому +1

    thanks sis💪🏻💯 i was struggling to understand deep vs shallow copy and watched many yt videos but you made it easy for me and now i understand it you're a lifesaver fr fr👌✨

  • @CodeWithJamil786
    @CodeWithJamil786 11 місяців тому +1

    Awesome explained each and every concept.... Thank you...

  • @anjusreedharan3210
    @anjusreedharan3210 3 роки тому +7

    Your videos are really informative and we can understand the concepts very clearly. Please add videos on ngRx and cookies in angular

  • @EcomBusiness
    @EcomBusiness Рік тому

    Thank You So much Mam.
    After witching other youtubers video I don't understand what is Shallow copy & Deep copy
    But Mam your video is so helpful me to understand the concept and all methods in Easy Way.
    Again Really Really Thank You!

  • @hashtagrahul15
    @hashtagrahul15 2 місяці тому

    Best explanation ever thankyou😊

  • @akiratoriyama1320
    @akiratoriyama1320 3 роки тому +1

    Damn girl!! Those videos are super helpful!!!! Can't thank you enough!!!

  • @thahirakramthahirakram2275
    @thahirakramthahirakram2275 Рік тому

    very nice explanation execellent

  • @kunalrajput2234
    @kunalrajput2234 2 роки тому

    Well this was a deep explanation for my shallow js knowledge. Great video thanks

  • @ChessWithAnyone
    @ChessWithAnyone Рік тому +1

    nice explanation ❤❤

  • @ramadevi-xe4be
    @ramadevi-xe4be Рік тому

    your explanation is excellent

  • @ehrazahmed8190
    @ehrazahmed8190 3 роки тому +1

    Nice Explaination 👍.Good work👏.

  • @rajeshkolluri448
    @rajeshkolluri448 2 роки тому +1

    Thank you,Clean and clear explanation

  • @neerukondasandhya3432
    @neerukondasandhya3432 2 роки тому +1

    Awesome explanation mam

  • @anupb540
    @anupb540 2 роки тому

    Thanks for this informative and easy to understand video..

  • @apurvakumar5881
    @apurvakumar5881 3 роки тому +1

    thankyou mam for making my concept clear

  • @VIVEKJOSHI05
    @VIVEKJOSHI05 3 роки тому +1

    Good explanation.✌️

  • @jaffaji
    @jaffaji 3 роки тому +1

    Nice voice. nice concept.

  • @chanduBoddu
    @chanduBoddu 3 роки тому +1

    Awesome explanation , thank you so much

    • @NishaSingla
      @NishaSingla  3 роки тому

      😊😊

    • @chanduBoddu
      @chanduBoddu 3 роки тому

      Today we faced same issue in prob , but fixed it Bec of ur video

  • @tusarkantamallick5414
    @tusarkantamallick5414 2 роки тому

    thank you, for clear explanation

  • @anupb540
    @anupb540 Рік тому

    Nicely explained..understand the concept well..just a confusion, Object.assign() is giving partial deep copy, JSON.stringify() also giving partial deep copy...and use of spread operator is giving complete deep copy...so my question is which method is giving shallow copy...is shallow copy same as just assigning one object to another object or something else?

    • @kalpeshdashpute9598
      @kalpeshdashpute9598 Рік тому

      referance data types like array and object have a by default shallow copy nature

  • @kotireddy419
    @kotireddy419 3 роки тому +1

    When to use shallow copy and deep copy ? Can you explain about this difference?

  • @SAAMY_1414
    @SAAMY_1414 2 роки тому

    Awesome Series :) (y)
    ..
    In this case if I want to update Country in copied Object ?
    I am trying to update in copiedvalue country value as 'US' (for example) , its creating a new key value with same pair .

  • @shubhamkhilari6872
    @shubhamkhilari6872 2 роки тому

    This is crisp 🫡🫡

  • @arpitsatyal8900
    @arpitsatyal8900 3 роки тому +1

    You are amazing

    • @NishaSingla
      @NishaSingla  3 роки тому

      Thanks 🙏

    • @arpitsatyal8900
      @arpitsatyal8900 3 роки тому

      @@NishaSingla can you list all the important topics for an angular interview from your experience

  • @ganesh56789
    @ganesh56789 3 роки тому +1

    Thank you 🙏

  • @Looser_alpha
    @Looser_alpha 3 роки тому +1

    how much javacsript we would learn to land a job as a frontend developer please help me its an emergency

    • @NishaSingla
      @NishaSingla  3 роки тому +1

      fundamentals should be clear...and it all depend for which role you are going even as frontend developer

    • @Looser_alpha
      @Looser_alpha 3 роки тому

      @@NishaSingla to app hi bata do konse topic front-end developer as a fresher padhe

  • @gayathrig6046
    @gayathrig6046 2 роки тому +1

    Thanks.

  • @srinivasgangaraju2998
    @srinivasgangaraju2998 Рік тому

    5:26

  • @Adnan3035
    @Adnan3035 2 роки тому +1

    Very well explained.

  • @Looser_alpha
    @Looser_alpha 3 роки тому

    make video on json method

  • @mithunkumar5185
    @mithunkumar5185 Рік тому

    With the help of this JSON.parse(JSON.stringify(object)); you can easily achieve the deep copy

  • @apurvakumar5881
    @apurvakumar5881 3 роки тому +1

    i can able to do foe nested and simple objects
    FOR EX-----
    var obj = [{ x: 1 }, {y: 2}];
    var deepCopy = _.cloneDeep(obj);
    // Changing orignal value
    obj[0].x = 10;

    // Values after changing original value
    console.log("After changing original value");

    console.log("Original value ", obj);

    console.log("Deep Copy value ", deepCopy);
    OUTPUT
    Original value [ { x: 10 }, { y: 2 } ]
    Deep Copy value [ { x: 1 }, { y: 2 } ]

    • @NishaSingla
      @NishaSingla  3 роки тому +1

      Cool 😎👍🏻

    • @ShravanKumar-kh2un
      @ShravanKumar-kh2un 2 роки тому

      Good but you are using loadsh methods for it, she did it by using inbuilt es6 features

  • @kalyanideshmukh47
    @kalyanideshmukh47 3 роки тому +1

    Thank you ma'am 😊