Javascript Interview Questions ( Objects ) - Output Based, Destructuring, Object Referencing, etc

  Рет қаралды 109,183

RoadsideCoder

RoadsideCoder

Күн бұрын

#JavascriptInterview #Javascript #FrontendInterview
Javascript Interview Questions on objects will be discussed in this video including topics like Object Destructuring, Object Referencing, Spread and Rest Operators, Shallow vs Deep Copy, Ways to clone an object and much more!
🟦 Follow me on Twitter and u will clear your interview 🤓 -
/ piyush_eon
⭐ Support the channel and learn from me One on One -
/ @roadsidecoder
🔗 Blog for the video -
roadsidecoder.hashnode.dev/ja...
🔗 Functions Interview Video -
• Javascript Interview Q...
🔗 Map, Filter and Reduce Interview Video -
• Javascript Interview Q...
🔗 Javascript Interview Series -
• Javascript Interview Q...
🔗 Cars24 Interview Experience -
• Frontend Interview Exp...
🔗 Unacademy Interview Experience -
• Frontend Interview Exp...
🔗 MERN Stack Tutorial with Redux -
• MERN Stack Project Tut...
🔗 React Beginner's Project Tutorials -
• React JS Project Tutor...
-------------------------------------------------------------------------
00:00 Intro
00:29 What are Objects?
01:04 Working with Objects
02:19 Interview Question on delete keyword
04:15 Computed Properties
05:36 Looping through Objects
06:38 Ques 1 - Output Based
07:14 Ques 2 - Implement this function ?
08:53 Ques 3 ( Important ) - Output Based
10:25 Ques 4 - Stringify vs Parse
13:39 Ques 5 - Spread Operator
14:17 Ques 6 - Spread Operator
14:55 Ques 7 - Output Based
15:35 Ques 8 - 'this' keyword
16:54 Ques 9 - Destructuring
19:04 Ques 10 - Output Based
20:06 Ques 11 - Object Referencing
21:11 Ques 12 - Object Referencing
21:50 Ques 13 - Object Referencing
22:56 Ques 14 - Output Based
24:35 Ques 15 - Output Based
26:08 Ques 15 - Shallow vs Deep Copy
26:47 Ques 16 - 3 Ways to clone an Object
28:26 Written Blog link in description
-------------------------------------------------------------------------
Special Thanks to our members -

Пікірлер: 170
@RoadsideCoder
@RoadsideCoder Жыл бұрын
🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details
@prangshugogoi5624
@prangshugogoi5624 Жыл бұрын
Kindly make a video on interview questions on cookies , local storage & session storage … also to mention nice explanation on the topics , Thank you 🙏
@chinmoyborah376
@chinmoyborah376 Жыл бұрын
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.
@girishanavani8620
@girishanavani8620 Жыл бұрын
Great video! Also, a video on local storage, session storage, and Indexed DB with the use case would be a great one.
@ashishmadan5700
@ashishmadan5700 Жыл бұрын
I didn't find such a great video on Internet !! Thanks, man for such amazing content❤️Keep posting such content !!
@abdelrahmanelsaadany892
@abdelrahmanelsaadany892 Жыл бұрын
I didn't know this video existed! Thanks bro! Really grateful.
@karthikkonathala3002
@karthikkonathala3002 Жыл бұрын
Yes, please make a video on differences between session storage, local storage and cookies when and how to use them
@DeepakSingh-eq8jl
@DeepakSingh-eq8jl Жыл бұрын
Yes, please make some more lectures on interview questions including session and local storage
@juniorWeb247
@juniorWeb247 Жыл бұрын
Really really help to me, thank you much brother. You are really doing a good job. God bless you, man.
@prabhneetsingh13
@prabhneetsingh13 Жыл бұрын
This was such a great video, it cleared so many small small concepts of mine
@makingeliteinfotech5305
@makingeliteinfotech5305 10 ай бұрын
Thank piyush , I recommend your videos to everyone
@avinashverma5538
@avinashverma5538 Жыл бұрын
awesome video, helps a lot to clear concepts about objects. Thanks
@deepakkolare
@deepakkolare Жыл бұрын
Great explanation! Object.freeze and Object.seal could have been added to the video.
@trendingindia972
@trendingindia972 Жыл бұрын
Excellent video as always brother thank you
@user121304
@user121304 Жыл бұрын
Hi Piyush, Thank you for this wonderful series. Please make a tutorial on LocalStorage, Session storage and cookies. Will appreciate it. Thanks!!!
@abhishekkerketta9722
@abhishekkerketta9722 Жыл бұрын
Please make a series of output based....It would really be very helpful.....
@Haffiz.siddique
@Haffiz.siddique Жыл бұрын
This video was so life changing, keep up the good work
@srinivasak4087
@srinivasak4087 6 ай бұрын
nice clear explanation , Thanks Sir!
@hamid.mahmood96
@hamid.mahmood96 Жыл бұрын
Yes please make a video on local storage and session storage
@shubhambhardwaj1019
@shubhambhardwaj1019 Жыл бұрын
Explanation 👌
@smordefx7688
@smordefx7688 Жыл бұрын
works great and without any problems
@ambesapaulos4323
@ambesapaulos4323 Жыл бұрын
the way you teach is wonderful keep it up
@ansarisuhail5127
@ansarisuhail5127 Ай бұрын
Such a great video🎉
@k.ksharma4457
@k.ksharma4457 Жыл бұрын
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
@kumar_awadhesh
@kumar_awadhesh Жыл бұрын
Good job 👍👍 Thank you
@shash0_0
@shash0_0 9 күн бұрын
Your content is highly underappreciated. Thanks for your work!
@RoadsideCoder
@RoadsideCoder 9 күн бұрын
I appreciate that!
@abhishekvishwakarma9045
@abhishekvishwakarma9045 Жыл бұрын
Nice Explanation 🔥
@nishachapte7
@nishachapte7 Жыл бұрын
Thanks..Amazing and very useful video.
@ajithk.s7848
@ajithk.s7848 Жыл бұрын
Good and specific content.. 👌
@100bi8
@100bi8 9 ай бұрын
ThankYou Prabhu ❤❤
@lucaliebenberg7565
@lucaliebenberg7565 Жыл бұрын
Great video Piyush 💯 would you be able to please do a video on interview questions related to local storage, sessions and cookies?
@sunilr.v.6345
@sunilr.v.6345 Жыл бұрын
how well you have explained such complex topics ... great work ....keep it up ..!!!!
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thank you, I will
@princeverma6533
@princeverma6533 Жыл бұрын
Great Video, Please make video on cookie, session and local storage with examples
@SalmanKhan-lx9kp
@SalmanKhan-lx9kp Жыл бұрын
waiting 🔥
@kitchen-e-kausar9105
@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.
@BrijeshSingh-dp1ku
@BrijeshSingh-dp1ku Жыл бұрын
Please make video on local storage, session storage and cookies ... It will be great help 🙏
@ashuprakash6697
@ashuprakash6697 Жыл бұрын
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.
@kanchanmatai4170
@kanchanmatai4170 19 күн бұрын
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.
@santhoshburgula6952
@santhoshburgula6952 Жыл бұрын
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.
@osamajune9
@osamajune9 Жыл бұрын
You are great ❤
@hareshdhanani2073
@hareshdhanani2073 Жыл бұрын
Thanks.
@pratikwadekar4981
@pratikwadekar4981 Жыл бұрын
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
@tpadma7419
@tpadma7419 26 күн бұрын
100% interview preparation..........very very thankfull...waiting for more such videos.....
@RoadsideCoder
@RoadsideCoder 26 күн бұрын
Checkout the full course here - roadsidecoder.com/course-details
@VishalSharma-rn7mt
@VishalSharma-rn7mt 5 ай бұрын
Awesome
@tamilselvans147
@tamilselvans147 Жыл бұрын
Hi bro, nice session. Pls do a video for How to make api's very secure?.. what are the possibilities? Jwt, Refresh token, etc
@DevangPatil
@DevangPatil Жыл бұрын
Amazing..
@RahulKumar-ew1qw
@RahulKumar-ew1qw Жыл бұрын
Please make vdo on local storages, session, cookies And cache too.. Thanks you bro in advance.
@cloud9656
@cloud9656 Жыл бұрын
Please create more videos for this playlist. Thanks
@amanmalhotra8730
@amanmalhotra8730 3 ай бұрын
awesome ❤❤
@salonipande6190
@salonipande6190 Жыл бұрын
Yes please make video on localstorage n session n cookies
@instinct_gallant8694
@instinct_gallant8694 Жыл бұрын
TNice tutorials tutorial was worth it, I understood everytNice tutorialng now
@SamruddhaShah
@SamruddhaShah Жыл бұрын
Learn alot
@himanshupandey3451
@himanshupandey3451 Жыл бұрын
great big fan now
@subhramukherjee6990
@subhramukherjee6990 Жыл бұрын
Good questions with great explanation.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thanks a lot!
@rakaa31
@rakaa31 Жыл бұрын
please make a video on How much javascript is enough for interviews and what are the important topics to focus on for interviews
@pavithrasai1392
@pavithrasai1392 Жыл бұрын
can you explain about cyclic structures and why we cannot apply json.stringify on them?
@MrK-nb7xr
@MrK-nb7xr Жыл бұрын
Please make on cookies , local storage, session related stuff every things .. Thanks
@chirag8250
@chirag8250 Жыл бұрын
13:35 yes please!
@ojaspalorkar7434
@ojaspalorkar7434 8 ай бұрын
Please make video on local storage session storage !!
@kartik7775
@kartik7775 Жыл бұрын
awesome videos, thank you!!!!!
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Welcome!
@jhaganb9215
@jhaganb9215 Жыл бұрын
Can you make videos related to dsa using JavaScript for the dsa round in frontend interviews - also give some idea about how to get frontend internship opportunity while in college. hoping for your reply :)
@ayushrastogi_
@ayushrastogi_ 6 ай бұрын
Please create a video on interview questions asked about Local Storage and Sessions Storage.
@HimanshuSharma-mx7yx
@HimanshuSharma-mx7yx 10 ай бұрын
Make a video on the loacal Storage, cookies and session storage
@abcxyz5385
@abcxyz5385 Жыл бұрын
Sir, please make video on session storage and local storage
@techstudio2874
@techstudio2874 Жыл бұрын
excellent
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thank you! Cheers!
@vipin3982
@vipin3982 Жыл бұрын
Bro!!!!!!!!!!!!!!!Awesome Video
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Thanks!!
@andrei-gabrieldragomir
@andrei-gabrieldragomir 10 ай бұрын
good
@floatingcloud5955
@floatingcloud5955 Жыл бұрын
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
@yaduvanshiNK Жыл бұрын
An IIFE (Immediately Invoked Function Expression) is a JavaScript function that runs as soon as it is defined.
@prabhneetsingh13
@prabhneetsingh13 Жыл бұрын
Kindly make a video on local storage, session storage and cookies
@saikatbose2410
@saikatbose2410 Жыл бұрын
Please make the video on local storage, session storage, cache and cookies etc
@vijenderkumar3034
@vijenderkumar3034 4 ай бұрын
Please make video on local and session storage and cookie
@V_Prahlad
@V_Prahlad Жыл бұрын
You are gor for me.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Gor?
@ShubhamPatil-rr4on
@ShubhamPatil-rr4on Жыл бұрын
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
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Oh wow bro, can u provide me the timestamp of that video where he said that?
@BrijeshSingh-dp1ku
@BrijeshSingh-dp1ku Жыл бұрын
@@RoadsideCoder 32.25
@ShubhamPatil-rr4on
@ShubhamPatil-rr4on Жыл бұрын
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.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
@@ShubhamPatil-rr4on Sure
@SachinKumar-bb2yn
@SachinKumar-bb2yn Жыл бұрын
Please make video on local storage
@20TUEC012ATHILAKSHMI.M
@20TUEC012ATHILAKSHMI.M 16 күн бұрын
kindly make video on localStorage session
@sidd_shaikh
@sidd_shaikh 8 ай бұрын
Hello sir if the object is deeply nested then how can we make deep copy
@xync1252
@xync1252 Жыл бұрын
Portfolio making please
@user-wq4hm4wr4r
@user-wq4hm4wr4r 6 ай бұрын
make video on local storage and session storage
@Krishnasaini
@Krishnasaini Жыл бұрын
Where to practice more about these topics?
@codictive
@codictive Жыл бұрын
pls make video on storage
@xync1252
@xync1252 Жыл бұрын
Please make portfolio video egarlu waiting...
@kmsnymisha4607
@kmsnymisha4607 Жыл бұрын
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
@RoadsideCoder
@RoadsideCoder Жыл бұрын
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.
@bandaumamahesh9346
@bandaumamahesh9346 2 ай бұрын
Bro can you please tell me some good books for javascript and react.
@cb559
@cb559 Жыл бұрын
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
@rahulrathod8959
@rahulrathod8959 Жыл бұрын
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?
@mrrishiraj88
@mrrishiraj88 Жыл бұрын
👍
@shahzoobgouhar2334
@shahzoobgouhar2334 10 ай бұрын
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; }
@prasoonmishra6288
@prasoonmishra6288 Жыл бұрын
🤩🤩🤩🤩
@karthikeyasoft
@karthikeyasoft Жыл бұрын
I have little bit confusion over changeAgeAndReference topic time 25:50 personObj1 how come age : 25
@kedarkulkarni0074
@kedarkulkarni0074 Жыл бұрын
Bhai please problem solving ka bhi , sirf list of problems Jo usually FE me puchte hai.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes I have planned that too
@nishantshah_
@nishantshah_ Жыл бұрын
Object.assign and destructuring creates shallow copy only.
@ranajoyghosh1008
@ranajoyghosh1008 Жыл бұрын
You guys should consider getting Caustic 3, it helped understand the basics I tNice tutorialnk it´s even free for PC, on the phone it costs a little.
@keyurgolani956
@keyurgolani956 Жыл бұрын
When video on this keyword is coming. Very confusing and many scenarios where it behaves differently. Eagerly waiting!
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Soon
@emilyaung2963
@emilyaung2963 Жыл бұрын
Hey wouldn't Object.assign({} , user) and the spread operator do shallow copy? vs the JSON.stringify and parse will do deep copy?
@deepakkolare
@deepakkolare Жыл бұрын
Object.assign and spread are shallow copy for nested object for direct properties it’s a deep copy.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes I've mentioned that this doesn't work for nested properties.
@keshavgaur1886
@keshavgaur1886 Жыл бұрын
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
@sachinkr0405
@sachinkr0405 Жыл бұрын
problems and than volu automate the boi cuz I didn’t know how to sidechain. My one buddy produces riddim and he legit saw my daw
@rams9169
@rams9169 Жыл бұрын
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" }
@ayushtiwari-zm1co
@ayushtiwari-zm1co Жыл бұрын
Bhai big fan please reply 🙏🙏🙏
@RoadsideCoder
@RoadsideCoder Жыл бұрын
😂
@JohnSnow-gi7iv
@JohnSnow-gi7iv Жыл бұрын
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.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Yes ofcourse it is! Why would you think that?
@shivambln
@shivambln 4 ай бұрын
Great but some object methods are missing ..... Like freeze and all
2.5 Years Experienced Best JavaScript Interview
2:03:06
Anurag Singh ProCodrr
Рет қаралды 75 М.
NO NO NO YES! (40 MLN SUBSCRIBERS CHALLENGE!) #shorts
00:27
PANDA BOI
Рет қаралды 110 МЛН
Monster dropped gummy bear 👻🤣 #shorts
00:45
Yoeslan
Рет қаралды 10 МЛН
STOP Watching Coding Tutorials Right Now! My LEARNING FRAMEWORK
12:19
Harkirat Singh
Рет қаралды 202 М.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 36 М.