🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details
@chinmoyborah3762 жыл бұрын
For me , a great video for revision. Thanks. Just a minor thing I would like to add for deep and shallow copy. While we use Object.assign({}, obj) or use spread operator {...obj} , only the primitive objects inside the main object gets deep cloned into new object. For the nested objects, only the reference is stored, which is basically shallow copy.
@supriyabiradar399627 күн бұрын
So basically Object.assign and spread operator are creating shallow copy and not deep copy?
@prangshugogoi56242 жыл бұрын
Kindly make a video on interview questions on cookies , local storage & session storage … also to mention nice explanation on the topics , Thank you 🙏
@tpadma74198 ай бұрын
100% interview preparation..........very very thankfull...waiting for more such videos.....
@RoadsideCoder8 ай бұрын
Checkout the full course here - roadsidecoder.com/course-details
@kmsnymisha46072 жыл бұрын
Can you please explain why the members array remained same when person is set to null and why it changed to null only on changing the name property in the person object at 21:50
@RoadsideCoder2 жыл бұрын
Because we are reassigning the value which replaces the previous object, but in case of name properly, we are changing the value of that key which has the reference to the original object.
@crazyvaleideas2 жыл бұрын
I didn't find such a great video on Internet !! Thanks, man for such amazing content❤️Keep posting such content !!
@ashuprakash66972 жыл бұрын
Can you provide a link or something related to property you discussed at timestamp 22:32, where you set person to null? It would be really helpful.
@girishanavani86202 жыл бұрын
Great video! Also, a video on local storage, session storage, and Indexed DB with the use case would be a great one.
how well you have explained such complex topics ... great work ....keep it up ..!!!!
@RoadsideCoder2 жыл бұрын
Thank you, I will
@adnantariq3346 Жыл бұрын
5:38 Trying to loop through an object will NOT work in react. it will give "'key' is not defined"
@shash0_08 ай бұрын
Your content is highly underappreciated. Thanks for your work!
@RoadsideCoder8 ай бұрын
I appreciate that!
@makingeliteinfotech5305 Жыл бұрын
Thank piyush , I recommend your videos to everyone
@abdelrahmanelsaadany8922 жыл бұрын
I didn't know this video existed! Thanks bro! Really grateful.
@DeepakSingh-eq8jl2 жыл бұрын
Yes, please make some more lectures on interview questions including session and local storage
@shakeelahmed-wv8oh5 ай бұрын
Can u explain more for the question at 26:03, it will be more helpful for people who are not able to understand the concept of referencing and return statement
@ambesapaulos43232 жыл бұрын
the way you teach is wonderful keep it up
@juniorWeb247 Жыл бұрын
Really really help to me, thank you much brother. You are really doing a good job. God bless you, man.
@srinivasak4087 Жыл бұрын
nice clear explanation , Thanks Sir!
@k.ksharma44572 жыл бұрын
great explanation as always u do 👍 and yes ye dil mange more 😀 so plz post a video based on local storage cookies and sessions deeply
@malag63583 ай бұрын
Thank You Soo Much I learnt Many Things
@avinashverma55382 жыл бұрын
awesome video, helps a lot to clear concepts about objects. Thanks
@ajithk.s78482 жыл бұрын
Good and specific content.. 👌
@sanjaytk4 ай бұрын
Road side paani-puri always awesome like Road side Coding... 🤟🤟😃😃
@hamid.mahmood962 жыл бұрын
Yes please make a video on local storage and session storage
@asmitabiswas4426 ай бұрын
For me you are the live saver
@abhishekkerketta97222 жыл бұрын
Please make a series of output based....It would really be very helpful.....
@karthikkonathala30022 жыл бұрын
Yes, please make a video on differences between session storage, local storage and cookies when and how to use them
@tarak_802 ай бұрын
I think structuredclone is one of the best way to get a deep copy of an existing object because it will also clone if there is nested objects .
@ansarisuhail51278 ай бұрын
Such a great video🎉
@deepakkolare2 жыл бұрын
Great explanation! Object.freeze and Object.seal could have been added to the video.
@nishachapte72 жыл бұрын
Thanks..Amazing and very useful video.
@subhramukherjee69902 жыл бұрын
Good questions with great explanation.
@RoadsideCoder2 жыл бұрын
Thanks a lot!
@BrijeshSingh-dp1ku2 жыл бұрын
Please make video on local storage, session storage and cookies ... It will be great help 🙏
@ShubhamPatil-rr4on2 жыл бұрын
Read it.....👉 Most welcome brother,lot of people watching you , yesterday I watched technical suneja live and thaire one of the people tell to Ajay sir that's I'm watching roadside coder js videos.and Ajay sir also appreciate it.💯♥️👍 Keep it up
@RoadsideCoder2 жыл бұрын
Oh wow bro, can u provide me the timestamp of that video where he said that?
@BrijeshSingh-dp1ku2 жыл бұрын
@@RoadsideCoder 32.25
@ShubhamPatil-rr4on2 жыл бұрын
32:25 Yesterday I shared you timestamp but I don't know how it will didn't upload. Can we connect on LinkedIn I have some few queries if you help me out it will lot toe.
@RoadsideCoder2 жыл бұрын
@@ShubhamPatil-rr4on Sure
@trendingindia9722 жыл бұрын
Excellent video as always brother thank you
@kanchanmatai41708 ай бұрын
Very nicely explained about json.parse and json.stringify with their use case. Please make more such videos on intserview questions based on output and coding.
@floatingcloud59552 жыл бұрын
2:27 fe = function expression You can assign a function() without 'function name' to a variable as value is called Function expression var a= function (){ }
@yaduvanshiNK Жыл бұрын
An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.
@prabhneetsingh132 жыл бұрын
This was such a great video, it cleared so many small small concepts of mine
@RahulKumar-ew1qw2 жыл бұрын
Please make vdo on local storages, session, cookies And cache too.. Thanks you bro in advance.
@smordefx76882 жыл бұрын
works great and without any problems
@100bi8 Жыл бұрын
ThankYou Prabhu ❤❤
@kumar_awadhesh2 жыл бұрын
Good job 👍👍 Thank you
@pratikwadekar49812 жыл бұрын
JSON.stringify and JSON.parse will only work on JSON safe objects. If the objects contain functions, symbols or dates that won’t create a deep clone
@instinct_gallant86942 жыл бұрын
TNice tutorials tutorial was worth it, I understood everytNice tutorialng now
@svanaja3315 ай бұрын
Doing great job
@karthikeyasoft Жыл бұрын
I have little bit confusion over changeAgeAndReference topic time 25:50 personObj1 how come age : 25
@emilyaung29632 жыл бұрын
Hey wouldn't Object.assign({} , user) and the spread operator do shallow copy? vs the JSON.stringify and parse will do deep copy?
@deepakkolare2 жыл бұрын
Object.assign and spread are shallow copy for nested object for direct properties it’s a deep copy.
@RoadsideCoder2 жыл бұрын
Yes I've mentioned that this doesn't work for nested properties.
@abhishekvishwakarma90452 жыл бұрын
Nice Explanation 🔥
@ComonManYT2 жыл бұрын
This video was so life changing, keep up the good work
@santhoshburgula69522 жыл бұрын
Bro, I have gone through some videos, you are simply rocking and just you inspired me a lot. what should I do to pro in javascript like you ? is there any best book for javascript and as well as practice problems? please refer to any suggestions and root map. by the by, im from Non-IT background.
@rajathmr41716 ай бұрын
Hey I was watching this tutorial for interview prep, got one doubt this cloning objects with different ways have its own limitiation. Most common is method is not preserved and also complex entities like Set, Map, Regex. loadhash would simpilfy this but how we can do this without using external library is there any Polyfills to it?
@ShreyaskarART3 ай бұрын
Quite helpful !
@kitchen-e-kausar9105 Жыл бұрын
Great video, thank you. For the last question I'm confused, Object.assign and spread operator, do they really create a deep copy? Would have been great if the video ended with the sone nested object examples.
@lucaliebenberg7565 Жыл бұрын
Great video Piyush 💯 would you be able to please do a video on interview questions related to local storage, sessions and cookies?
@vipin39822 жыл бұрын
Bro!!!!!!!!!!!!!!!Awesome Video
@RoadsideCoder2 жыл бұрын
Thanks!!
@osamajune92 жыл бұрын
You are great ❤
@tamilselvans1472 жыл бұрын
Hi bro, nice session. Pls do a video for How to make api's very secure?.. what are the possibilities? Jwt, Refresh token, etc
@ajmalansari31657 ай бұрын
Yes make a video on local storage, session storage and cookies etc.
@himanshupandey34512 жыл бұрын
great big fan now
@cloud9656 Жыл бұрын
Please create more videos for this playlist. Thanks
@sagarpatel88533 ай бұрын
Great job.but Object.assign, stringifying then parsing and spreading are not the correct way to create a deep copy of an object. because out of these three methods some are not compatible for nested objects and some are not compatible for functions and Dates inside the objects. In order to create a deep copy of an object we gotta install a third party library called lodash, which has got a functionality Clonedeep, which can help us in this.
@princeverma65332 жыл бұрын
Great Video, Please make video on cookie, session and local storage with examples
@Krishnasaini2 жыл бұрын
Where to practice more about these topics?
@abcxyz5385 Жыл бұрын
Sir, please make video on session storage and local storage
@rahulrathod89592 жыл бұрын
Hi. But we can't reassign to a constant variable. As personObj1 is constant variable then why it is able to reassign in the function changeAgeandName?
@amanmalhotra873011 ай бұрын
awesome ❤❤
@chirag82502 жыл бұрын
13:35 yes please!
@kartik77752 жыл бұрын
awesome videos, thank you!!!!!
@RoadsideCoder2 жыл бұрын
Welcome!
@avinash15sharma2 жыл бұрын
How we can compare two objects with same key-value pair but in different order? Also we are not allowed to use Lodash. Only Javascript solution.
@sanamukhtar40087 ай бұрын
thank you
@sidd_shaikh Жыл бұрын
Hello sir if the object is deeply nested then how can we make deep copy
@salmanSyntax2 жыл бұрын
waiting 🔥
@SamruddhaShah2 жыл бұрын
Why don't invinite amazon frontend engineeer for interview experience, we will learn alot
@RoadsideCoder2 жыл бұрын
Good idea
@cb5592 жыл бұрын
on timestamp 18.10 we are not renaming the value of name , we are assigning the value of name to myName .As renaming means changing the value of name to other string Please correct me if i am wrong
@divyasampath2843 Жыл бұрын
I did not get this part, if someone can help: Since we are assigning obj1 to obj2, ideally whatever is the value is set to obj1 should be the same for obj2, right? as in, for both, the name should by 'pi', and age 7, isnt it? function change(obj) { obj.name = 'pi', obj = { name: 'hena', age:9, } return obj; } var obj1 = { name: 'div', age: 7, } const obj2 = change(obj1); console.log(obj1); console.log(obj2);
@user121304 Жыл бұрын
Hi Piyush, Thank you for this wonderful series. Please make a tutorial on LocalStorage, Session storage and cookies. Will appreciate it. Thanks!!!
@rakaa312 жыл бұрын
please make a video on How much javascript is enough for interviews and what are the important topics to focus on for interviews
@salonipande61902 жыл бұрын
Yes please make video on localstorage n session n cookies
@rohitahuja9992 жыл бұрын
why don't you use node js and run js code in terminal
@shubhambhardwaj10192 жыл бұрын
Explanation 👌
@pavithrasai13922 жыл бұрын
can you explain about cyclic structures and why we cannot apply json.stringify on them?
@bandaumamahesh934610 ай бұрын
Bro can you please tell me some good books for javascript and react.
@rams91692 жыл бұрын
Hi all... i have small doubt for the below object...how to find key and value both ("second " : 2) in the below object..please i need your solutions const iem = { "first" : new Date(), "second" : 2, "third" : "test" }
@SamruddhaShah2 жыл бұрын
Learn alot
@VishalSharma-rn7mt Жыл бұрын
Awesome
@ayushrastogi_ Жыл бұрын
Please create a video on interview questions asked about Local Storage and Sessions Storage.
@jaydadhaniya220911 ай бұрын
Object.assign will create shallow copy not the deep copy if we have nested objects please kindly note this
@JohnSnow-gi7iv2 жыл бұрын
Is a career in frontend a good long term option? I feel a career in full stack or backend is better in long term? Your opinion will be helpful on this.
@RoadsideCoder2 жыл бұрын
Yes ofcourse it is! Why would you think that?
@HimanshuSharma-mx7yx Жыл бұрын
Make a video on the loacal Storage, cookies and session storage
@keshavgaur18862 жыл бұрын
I have been asked about how to print keys i was knowing the concept of foreign loop but don't know what happened during the interview was not able to tell that
@saikatbose24102 жыл бұрын
Please make the video on local storage, session storage, cache and cookies etc
@MrK-nb7xr2 жыл бұрын
Please make on cookies , local storage, session related stuff every things .. Thanks
@shivambln Жыл бұрын
Great but some object methods are missing ..... Like freeze and all
@SachinKumar-bb2yn2 жыл бұрын
Please make video on local storage
@ojaspalorkar7434 Жыл бұрын
Please make video on local storage session storage !!
@hareshdhanani20732 жыл бұрын
Thanks.
@vijenderkumar3034 Жыл бұрын
Please make video on local and session storage and cookie
@20TUEC012ATHILAKSHMI.M8 ай бұрын
kindly make video on localStorage session
@shahzoobgouhar2334 Жыл бұрын
Fellow devs below is a Polyfill for deep copy function deepCopy(obj) { if (typeof obj !== 'object' || obj === null) { return obj; } var copy; if (Array.isArray(obj)) { copy = []; } else { copy = {}; } for(key in obj) { copy[key] = deepCopy(obj[key]) } return copy; }