So when listening to "Advance concept of Cloning and Merging" part of the Module2 part 6 vidoe... when I did the example of clone, I am getting ReferenceError, but in the lecture vidoe it says the output is "ghi" also in the lecture video it shows "undefine" see attached screen shot.
Although in the for in loop it should be ... clone[key30] = user30[key30]; instead of clone[key30] = user30[key];
When hearing the video it say the output is "ghi" when I tried to do same example I get ReferenceError please see the attached screen shot.
This video is bit confusing way the material is presented.
Please correct me if I am mistaken
Here is the screen shot out put after adding insided the "for in" loop with clone[key30] = user30[key30];
InstructorYogesh Chawla Replied on 20/09/2019
This shouldn't be the case. Anyhow I have re-recorded the entire module. You can refer this new recording to understand "Copy By Reference. Cloning, Merging and Object.assign method". Just check that once.
And you can also refer this code to understand it better:
Thank you Instructor for clarification.
... you can close this query.