No video

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

  Рет қаралды 125,446

RoadsideCoder

RoadsideCoder

Күн бұрын

Пікірлер: 180
@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 !!
@DeepakSingh-eq8jl
@DeepakSingh-eq8jl 2 жыл бұрын
Yes, please make some more lectures on interview questions including session and local storage
@karthikkonathala3002
@karthikkonathala3002 2 жыл бұрын
Yes, please make a video on differences between session storage, local storage and cookies when and how to use them
@hamid.mahmood96
@hamid.mahmood96 2 жыл бұрын
Yes please make a video on local storage and session storage
@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
@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
@tpadma7419
@tpadma7419 4 ай бұрын
100% interview preparation..........very very thankfull...waiting for more such videos.....
@RoadsideCoder
@RoadsideCoder 4 ай бұрын
Checkout the full course here - roadsidecoder.com/course-details
@deepakkolare
@deepakkolare 2 жыл бұрын
Great explanation! Object.freeze and Object.seal could have been added to the video.
@abhishekkerketta9722
@abhishekkerketta9722 2 жыл бұрын
Please make a series of output based....It would really be very helpful.....
@shash0_0
@shash0_0 4 ай бұрын
Your content is highly underappreciated. Thanks for your work!
@RoadsideCoder
@RoadsideCoder 4 ай бұрын
I appreciate that!
@BrijeshSingh-dp1ku
@BrijeshSingh-dp1ku 2 жыл бұрын
Please make video on local storage, session storage and cookies ... It will be great help 🙏
@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.
@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
@RahulKumar-ew1qw
@RahulKumar-ew1qw 2 жыл бұрын
Please make vdo on local storages, session, cookies And cache too.. Thanks you bro in advance.
@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.
@makingeliteinfotech5305
@makingeliteinfotech5305 Жыл бұрын
Thank piyush , I recommend your videos to everyone
@juniorWeb247
@juniorWeb247 Жыл бұрын
Really really help to me, thank you much brother. You are really doing a good job. God bless you, man.
@santhoshburgula6952
@santhoshburgula6952 2 жыл бұрын
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.
@abdelrahmanelsaadany892
@abdelrahmanelsaadany892 Жыл бұрын
I didn't know this video existed! Thanks bro! Really grateful.
@asmitabiswas442
@asmitabiswas442 2 ай бұрын
For me you are the live saver
@kanchanmatai4170
@kanchanmatai4170 4 ай бұрын
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.
@ajmalansari3165
@ajmalansari3165 3 ай бұрын
Yes make a video on local storage, session storage and cookies etc.
@shakeelahmed-wv8oh
@shakeelahmed-wv8oh Ай бұрын
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
@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.
@sanamukhtar4008
@sanamukhtar4008 3 ай бұрын
thank you
@lucaliebenberg7565
@lucaliebenberg7565 Жыл бұрын
Great video Piyush 💯 would you be able to please do a video on interview questions related to local storage, sessions and cookies?
@instinct_gallant8694
@instinct_gallant8694 2 жыл бұрын
TNice tutorials tutorial was worth it, I understood everytNice tutorialng now
@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.
@sanjaytk
@sanjaytk 26 күн бұрын
Road side paani-puri always awesome like Road side Coding... 🤟🤟😃😃
@prabhneetsingh13
@prabhneetsingh13 Жыл бұрын
This was such a great video, it cleared so many small small concepts of mine
@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
@ambesapaulos4323
@ambesapaulos4323 Жыл бұрын
the way you teach is wonderful keep it up
@gajanandsharma1113
@gajanandsharma1113 Жыл бұрын
Question 2 : 7:15 -> Answer function multi2(obj) { return Object.entries(obj).reduce((acc, curr) => ({ ...acc, [curr[0]]: isNaN(curr[1]) ? curr[1] : curr[1]*2 }), {}) }
@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
@avinashverma5538
@avinashverma5538 2 жыл бұрын
awesome video, helps a lot to clear concepts about objects. Thanks
@smordefx7688
@smordefx7688 2 жыл бұрын
works great and without any problems
@svanaja331
@svanaja331 Ай бұрын
Doing great job
@rajathmr4171
@rajathmr4171 2 ай бұрын
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?
@user121304
@user121304 Жыл бұрын
Hi Piyush, Thank you for this wonderful series. Please make a tutorial on LocalStorage, Session storage and cookies. Will appreciate it. Thanks!!!
@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
@abcxyz5385
@abcxyz5385 Жыл бұрын
Sir, please make video on session storage and local storage
@ComonManYT
@ComonManYT 2 жыл бұрын
This video was so life changing, keep up the good work
@srinivasak4087
@srinivasak4087 10 ай бұрын
nice clear explanation , Thanks Sir!
@princeverma6533
@princeverma6533 2 жыл бұрын
Great Video, Please make video on cookie, session and local storage with examples
@xync1252
@xync1252 2 жыл бұрын
Portfolio making please
@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.
@trendingindia972
@trendingindia972 2 жыл бұрын
Excellent video as always brother thank you
@fewminuteswithabhi2482
@fewminuteswithabhi2482 8 ай бұрын
hi ,,Piyush.. you put great effort for the javascript developers comunity, but you give the example of deep copy of an object is wrong, you just copy the shallow copy of an object, i hope you finds it well and should correct this. And once again i really say thanks for the this type of content;👌👌👍👍
@RoadsideCoder
@RoadsideCoder 8 ай бұрын
You can use structuredClone() method to make a deep copy.
@shahzoobgouhar2334
@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; }
@100bi8
@100bi8 Жыл бұрын
ThankYou Prabhu ❤❤
@jaydadhaniya2209
@jaydadhaniya2209 7 ай бұрын
Object.assign will create shallow copy not the deep copy if we have nested objects please kindly note this
@salonipande6190
@salonipande6190 2 жыл бұрын
Yes please make video on localstorage n session n cookies
@hareshdhanani2073
@hareshdhanani2073 2 жыл бұрын
Thanks.
@himanshupandey3451
@himanshupandey3451 Жыл бұрын
great big fan now
@cloud9656
@cloud9656 Жыл бұрын
Please create more videos for this playlist. Thanks
@subhramukherjee6990
@subhramukherjee6990 2 жыл бұрын
Good questions with great explanation.
@RoadsideCoder
@RoadsideCoder 2 жыл бұрын
Thanks a lot!
@prabhneetsingh13
@prabhneetsingh13 Жыл бұрын
Kindly make a video on local storage, session storage and cookies
@HimanshuSharma-mx7yx
@HimanshuSharma-mx7yx Жыл бұрын
Make a video on the loacal Storage, cookies and session storage
@vijenderkumar3034
@vijenderkumar3034 8 ай бұрын
Please make video on local and session storage and cookie
@SalmanKhan-lx9kp
@SalmanKhan-lx9kp 2 жыл бұрын
waiting 🔥
@ansarisuhail5127
@ansarisuhail5127 4 ай бұрын
Such a great video🎉
@nishachapte7
@nishachapte7 2 жыл бұрын
Thanks..Amazing and very useful video.
@ayushrastogi_
@ayushrastogi_ 10 ай бұрын
Please create a video on interview questions asked about Local Storage and Sessions Storage.
@karthikeyasoft
@karthikeyasoft Жыл бұрын
I have little bit confusion over changeAgeAndReference topic time 25:50 personObj1 how come age : 25
@chirag8250
@chirag8250 2 жыл бұрын
13:35 yes please!
@kumar_awadhesh
@kumar_awadhesh 2 жыл бұрын
Good job 👍👍 Thank you
@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 :)
@MrK-nb7xr
@MrK-nb7xr 2 жыл бұрын
Please make on cookies , local storage, session related stuff every things .. Thanks
@VishalSharma-rn7mt
@VishalSharma-rn7mt 9 ай бұрын
Awesome
@saikatbose2410
@saikatbose2410 2 жыл бұрын
Please make the video on local storage, session storage, cache and cookies etc
@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?
@amanmalhotra8730
@amanmalhotra8730 7 ай бұрын
awesome ❤❤
@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.
@ajithk.s7848
@ajithk.s7848 2 жыл бұрын
Good and specific content.. 👌
@vipin3982
@vipin3982 2 жыл бұрын
Bro!!!!!!!!!!!!!!!Awesome Video
@RoadsideCoder
@RoadsideCoder 2 жыл бұрын
Thanks!!
@cb559
@cb559 2 жыл бұрын
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
@Yogi_3.O
@Yogi_3.O Жыл бұрын
You are gor for me.
@RoadsideCoder
@RoadsideCoder Жыл бұрын
Gor?
@pavithrasai1392
@pavithrasai1392 2 жыл бұрын
can you explain about cyclic structures and why we cannot apply json.stringify on them?
@20TUEC012ATHILAKSHMI.M
@20TUEC012ATHILAKSHMI.M 4 ай бұрын
kindly make video on localStorage session
@abhishekvishwakarma9045
@abhishekvishwakarma9045 2 жыл бұрын
Nice Explanation 🔥
@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?
@osamajune9
@osamajune9 2 жыл бұрын
You are great ❤
@kedarkulkarni0074
@kedarkulkarni0074 2 жыл бұрын
Bhai please problem solving ka bhi , sirf list of problems Jo usually FE me puchte hai.
@RoadsideCoder
@RoadsideCoder 2 жыл бұрын
Yes I have planned that too
@user-wq4hm4wr4r
@user-wq4hm4wr4r 10 ай бұрын
make video on local storage and session storage
@ojaspalorkar7434
@ojaspalorkar7434 Жыл бұрын
Please make video on local storage session storage !!
@adnantariq3346
@adnantariq3346 Жыл бұрын
5:38 Trying to loop through an object will NOT work in react. it will give "'key' is not defined"
@bandaumamahesh9346
@bandaumamahesh9346 5 ай бұрын
Bro can you please tell me some good books for javascript and react.
@codictive
@codictive 2 жыл бұрын
pls make video on storage
@rams9169
@rams9169 2 жыл бұрын
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" }
@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);
@SamruddhaShah
@SamruddhaShah 2 жыл бұрын
Learn alot
@SamruddhaShah
@SamruddhaShah 2 жыл бұрын
Why don't invinite amazon frontend engineeer for interview experience, we will learn alot
@RoadsideCoder
@RoadsideCoder 2 жыл бұрын
Good idea
@shivambln
@shivambln 8 ай бұрын
Great but some object methods are missing ..... Like freeze and all
@kartik7775
@kartik7775 2 жыл бұрын
awesome videos, thank you!!!!!
@RoadsideCoder
@RoadsideCoder 2 жыл бұрын
Welcome!
@shubhambhardwaj1019
@shubhambhardwaj1019 2 жыл бұрын
Explanation 👌
@shiva_krishna_rama
@shiva_krishna_rama Жыл бұрын
Last Que's Answer is not perfectly correct ... operator make shallow copy and JSON.stringify can't mentain order
Create Customers & Vendors
11:47
Alaa Mahmoud
Рет қаралды 9
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 20 МЛН
طردت النملة من المنزل😡 ماذا فعل؟🥲
00:25
Cool Tool SHORTS Arabic
Рет қаралды 25 МЛН
WILL IT BURST?
00:31
Natan por Aí
Рет қаралды 31 МЛН
5 Design Patterns That Are ACTUALLY Used By Developers
9:27
Alex Hyett
Рет қаралды 256 М.
`const` was a mistake
31:50
Theo - t3․gg
Рет қаралды 134 М.
Why Signals Are Better Than React Hooks
16:30
Web Dev Simplified
Рет қаралды 472 М.
10 JavaScript Interview Questions You HAVE TO KNOW
13:41
James Q Quick
Рет қаралды 56 М.
PEDRO PEDRO INSIDEOUT
00:10
MOOMOO STUDIO [무무 스튜디오]
Рет қаралды 20 МЛН