nice content keep it up and make more js junior mock interviews i struggle with how i need to think solve problems even if i know the "rules" of js
@mitesh5189 Жыл бұрын
in Map object to add an item and key you need to use Set insted of add
@TechWithNader Жыл бұрын
Hey Mitesh! I always mix these up, you're correct, haha! 😊
@Proton_uio Жыл бұрын
Oh I see, I suppose it is better to just access directly using dot or bracket for objects than use destructuring as it may be confusing and lengthier. However, with an object of many keys, then the use of ...rest to filter out is actually good.
@Proton_uio Жыл бұрын
I mean yes for one propery, but if with multiple properties, destructuring could be helpful though.
@KRAKENBACK.. Жыл бұрын
If you were to try and make a copy of an itterable with destructuring syntax, would the copies only work if the itterable contained only primitives? Asking because if the itterable contained non-primitives it would only make references, and if you changed the reference it would change both the "copy" and the original variable.
@KRAKENBACK.. Жыл бұрын
I may have answered my own question lol
@TechWithNader Жыл бұрын
Haha, looks like you figured it out, nice! Primitives are always copies no matter what, and everything is a reference even here 😊
@sportstv91042 ай бұрын
Keep going
@shivamgupta36522 жыл бұрын
Perfect
@TechWithNader2 жыл бұрын
Thanks Shivam! We'll be using this a lot as we work through JS together 😄
@TechWithNader2 жыл бұрын
Forgot to mention that I just started up the Discord server if you're interested in joining: discord.gg/Qkc62kpsKr
@shivamgupta36522 жыл бұрын
@@TechWithNader well this is an important thing. Thanx for starting this