Тёмный

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

RoadsideCoder
Подписаться 107 тыс.
Просмотров 117 тыс.
50% 1

#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 -

Опубликовано:

 

28 июн 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 177   
@RoadsideCoder
@RoadsideCoder 2 года назад
🔴 Get my Complete Frontend Interview Prep course - roadsidecoder.com/course-details
@chinmoyborah376
@chinmoyborah376 2 года назад
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.
@prangshugogoi5624
@prangshugogoi5624 2 года назад
Kindly make a video on interview questions on cookies , local storage & session storage … also to mention nice explanation on the topics , Thank you 🙏
@girishanavani8620
@girishanavani8620 2 года назад
Great video! Also, a video on local storage, session storage, and Indexed DB with the use case would be a great one.
@ashishmadan5700
@ashishmadan5700 2 года назад
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 2 года назад
Yes, please make a video on differences between session storage, local storage and cookies when and how to use them
@DeepakSingh-eq8jl
@DeepakSingh-eq8jl 2 года назад
Yes, please make some more lectures on interview questions including session and local storage
@makingeliteinfotech5305
@makingeliteinfotech5305 Год назад
Thank piyush , I recommend your videos to everyone
@abhishekkerketta9722
@abhishekkerketta9722 2 года назад
Please make a series of output based....It would really be very helpful.....
@deepakkolare
@deepakkolare 2 года назад
Great explanation! Object.freeze and Object.seal could have been added to the video.
@ashuprakash6697
@ashuprakash6697 2 года назад
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.
@prabhneetsingh13
@prabhneetsingh13 Год назад
This was such a great video, it cleared so many small small concepts of mine
@avinashverma5538
@avinashverma5538 2 года назад
awesome video, helps a lot to clear concepts about objects. Thanks
@smordefx7688
@smordefx7688 Год назад
works great and without any problems
@juniorWeb247
@juniorWeb247 Год назад
Really really help to me, thank you much brother. You are really doing a good job. God bless you, man.
@trendingindia972
@trendingindia972 2 года назад
Excellent video as always brother thank you
@srinivasak4087
@srinivasak4087 8 месяцев назад
nice clear explanation , Thanks Sir!
@hamid.mahmood96
@hamid.mahmood96 2 года назад
Yes please make a video on local storage and session storage
@asmitabiswas442
@asmitabiswas442 9 дней назад
For me you are the live saver
@user121304
@user121304 Год назад
Hi Piyush, Thank you for this wonderful series. Please make a tutorial on LocalStorage, Session storage and cookies. Will appreciate it. Thanks!!!
@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.
@Haffiz.siddique
@Haffiz.siddique Год назад
This video was so life changing, keep up the good work
@ambesapaulos4323
@ambesapaulos4323 Год назад
the way you teach is wonderful keep it up
@kumar_awadhesh
@kumar_awadhesh 2 года назад
Good job 👍👍 Thank you
@pavithrasai1392
@pavithrasai1392 Год назад
can you explain about cyclic structures and why we cannot apply json.stringify on them?
@BrijeshSingh-dp1ku
@BrijeshSingh-dp1ku 2 года назад
Please make video on local storage, session storage and cookies ... It will be great help 🙏
@shash0_0
@shash0_0 2 месяца назад
Your content is highly underappreciated. Thanks for your work!
@RoadsideCoder
@RoadsideCoder 2 месяца назад
I appreciate that!
@nishachapte7
@nishachapte7 2 года назад
Thanks..Amazing and very useful video.
@ansarisuhail5127
@ansarisuhail5127 2 месяца назад
Such a great video🎉
@100bi8
@100bi8 11 месяцев назад
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?
@k.ksharma4457
@k.ksharma4457 2 года назад
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
@abhishekvishwakarma9045
@abhishekvishwakarma9045 2 года назад
Nice Explanation 🔥
@pratikwadekar4981
@pratikwadekar4981 2 года назад
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
@princeverma6533
@princeverma6533 2 года назад
Great Video, Please make video on cookie, session and local storage with examples
@sunilr.v.6345
@sunilr.v.6345 2 года назад
how well you have explained such complex topics ... great work ....keep it up ..!!!!
@RoadsideCoder
@RoadsideCoder 2 года назад
Thank you, I will
@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.
@sanamukhtar4008
@sanamukhtar4008 Месяц назад
thank you
@RahulKumar-ew1qw
@RahulKumar-ew1qw 2 года назад
Please make vdo on local storages, session, cookies And cache too.. Thanks you bro in advance.
@ajithk.s7848
@ajithk.s7848 Год назад
Good and specific content.. 👌
@cloud9656
@cloud9656 Год назад
Please create more videos for this playlist. Thanks
@shubhambhardwaj1019
@shubhambhardwaj1019 2 года назад
Explanation 👌
@instinct_gallant8694
@instinct_gallant8694 Год назад
TNice tutorials tutorial was worth it, I understood everytNice tutorialng now
@hareshdhanani2073
@hareshdhanani2073 Год назад
Thanks.
@kmsnymisha4607
@kmsnymisha4607 2 года назад
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 2 года назад
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.
@salonipande6190
@salonipande6190 2 года назад
Yes please make video on localstorage n session n cookies
@kanchanmatai4170
@kanchanmatai4170 2 месяца назад
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.
@osamajune9
@osamajune9 2 года назад
You are great ❤
@tamilselvans147
@tamilselvans147 2 года назад
Hi bro, nice session. Pls do a video for How to make api's very secure?.. what are the possibilities? Jwt, Refresh token, etc
@tpadma7419
@tpadma7419 2 месяца назад
100% interview preparation..........very very thankfull...waiting for more such videos.....
@RoadsideCoder
@RoadsideCoder 2 месяца назад
Checkout the full course here - roadsidecoder.com/course-details
@xync1252
@xync1252 2 года назад
Portfolio making please
@abcxyz5385
@abcxyz5385 Год назад
Sir, please make video on session storage and local storage
@ajmalansari3165
@ajmalansari3165 Месяц назад
Yes make a video on local storage, session storage and cookies etc.
@rakaa31
@rakaa31 2 года назад
please make a video on How much javascript is enough for interviews and what are the important topics to focus on for interviews
@ojaspalorkar7434
@ojaspalorkar7434 10 месяцев назад
Please make video on local storage session storage !!
@subhramukherjee6990
@subhramukherjee6990 2 года назад
Good questions with great explanation.
@RoadsideCoder
@RoadsideCoder 2 года назад
Thanks a lot!
@ayushrastogi_
@ayushrastogi_ 8 месяцев назад
Please create a video on interview questions asked about Local Storage and Sessions Storage.
@MrK-nb7xr
@MrK-nb7xr 2 года назад
Please make on cookies , local storage, session related stuff every things .. Thanks
@himanshupandey3451
@himanshupandey3451 Год назад
great big fan now
@SamruddhaShah
@SamruddhaShah 2 года назад
Learn alot
@DevangPatil
@DevangPatil 2 года назад
Amazing..
@Krishnasaini
@Krishnasaini Год назад
Where to practice more about these topics?
@VishalSharma-rn7mt
@VishalSharma-rn7mt 7 месяцев назад
Awesome
@SalmanKhan-lx9kp
@SalmanKhan-lx9kp 2 года назад
waiting 🔥
@saikatbose2410
@saikatbose2410 Год назад
Please make the video on local storage, session storage, cache and cookies etc
@vijenderkumar3034
@vijenderkumar3034 6 месяцев назад
Please make video on local and session storage and cookie
@SachinKumar-bb2yn
@SachinKumar-bb2yn Год назад
Please make video on local storage
@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 :)
@20TUEC012ATHILAKSHMI.M
@20TUEC012ATHILAKSHMI.M 2 месяца назад
kindly make video on localStorage session
@kartik7775
@kartik7775 Год назад
awesome videos, thank you!!!!!
@RoadsideCoder
@RoadsideCoder Год назад
Welcome!
@codictive
@codictive Год назад
pls make video on storage
@HimanshuSharma-mx7yx
@HimanshuSharma-mx7yx Год назад
Make a video on the loacal Storage, cookies and session storage
@amanmalhotra8730
@amanmalhotra8730 5 месяцев назад
awesome ❤❤
@user-wq4hm4wr4r
@user-wq4hm4wr4r 8 месяцев назад
make video on local storage and session storage
@prabhneetsingh13
@prabhneetsingh13 Год назад
Kindly make a video on local storage, session storage and cookies
@rahulrathod8959
@rahulrathod8959 2 года назад
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?
@rajathmr4171
@rajathmr4171 16 часов назад
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?
@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
@sidd_shaikh
@sidd_shaikh 10 месяцев назад
Hello sir if the object is deeply nested then how can we make deep copy
@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.
@chirag8250
@chirag8250 2 года назад
13:35 yes please!
@xync1252
@xync1252 2 года назад
Please make portfolio video egarlu waiting...
@emilyaung2963
@emilyaung2963 2 года назад
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 2 года назад
Object.assign and spread are shallow copy for nested object for direct properties it’s a deep copy.
@RoadsideCoder
@RoadsideCoder 2 года назад
Yes I've mentioned that this doesn't work for nested properties.
@V_Prahlad
@V_Prahlad Год назад
You are gor for me.
@RoadsideCoder
@RoadsideCoder Год назад
Gor?
@JohnSnow-gi7iv
@JohnSnow-gi7iv 2 года назад
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 2 года назад
Yes ofcourse it is! Why would you think that?
@keshavgaur1886
@keshavgaur1886 2 года назад
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
@nishantshah_
@nishantshah_ 2 года назад
Object.assign and destructuring creates shallow copy only.
@bandaumamahesh9346
@bandaumamahesh9346 3 месяца назад
Bro can you please tell me some good books for javascript and react.
@avinash15sharma
@avinash15sharma Год назад
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.
@vipin3982
@vipin3982 2 года назад
Bro!!!!!!!!!!!!!!!Awesome Video
@RoadsideCoder
@RoadsideCoder 2 года назад
Thanks!!
@andrei-gabrieldragomir
@andrei-gabrieldragomir 11 месяцев назад
good
@divyasampath2843
@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);
@ShubhamPatil-rr4on
@ShubhamPatil-rr4on 2 года назад
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 2 года назад
Oh wow bro, can u provide me the timestamp of that video where he said that?
@BrijeshSingh-dp1ku
@BrijeshSingh-dp1ku 2 года назад
@@RoadsideCoder 32.25
@ShubhamPatil-rr4on
@ShubhamPatil-rr4on 2 года назад
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 2 года назад
@@ShubhamPatil-rr4on Sure
@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" }
@ninjatechstudio
@ninjatechstudio 2 года назад
excellent
@RoadsideCoder
@RoadsideCoder 2 года назад
Thank you! Cheers!
@rohitahuja999
@rohitahuja999 Год назад
why don't you use node js and run js code in terminal
@SamruddhaShah
@SamruddhaShah 2 года назад
Why don't invinite amazon frontend engineeer for interview experience, we will learn alot
@RoadsideCoder
@RoadsideCoder 2 года назад
Good idea
@karthikeyasoft
@karthikeyasoft Год назад
I have little bit confusion over changeAgeAndReference topic time 25:50 personObj1 how come age : 25
@user-ql3lh7em8p
@user-ql3lh7em8p 2 года назад
Please upload new react 18
Далее
Игровой Комп с Авито за 4500р
01:00
I Built a SECRET McDonald’s In My Room!
36:00
Просмотров 10 млн
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
Every React Concept Explained in 12 Minutes
11:53
Просмотров 422 тыс.