7.5 Years Experienced Best Javascript Interview | Chakde Frontend Interview EP - 04

  Рет қаралды 12,075

Chirag Goel

Chirag Goel

Ай бұрын

Back again with another episode of "CHAKDE INTERVIEWS" but this around we are going much deeper into the concepts and complexity .
Last time it was React now it's JS❤️ ....yes It's not just a random interview series , It's a complete package and I have curate the question very strategically so that it will help you crack your next interview.
Share your answer on the comment box with the time stamp and on Linkedin. Best solution will get pinned on YT comment box.
Give your love and support to this episode .
Connect to learn & grow together in our career❤️:
✅ Linkedin: / engineerchirag
✅ Twitter: / engineerchirag
✅ Instagram: / engineerchirag
Music track: Wanderer by walen
Source: freetouse.com/music
No Copyright Background Music
#interview #react #javascript #chakdeinterviews #frontenddevelopment #mockinterview

Пікірлер: 95
@011arunkumar8
@011arunkumar8 Ай бұрын
Hi Chirag,I have 1.5 years of experience. Just one week ago, an interviewer asked me the same first question (auto retry api). At that time, I wasn’t able to answer that question😢. I wish I had found this video a little earlier😅. Thank you, Chirag, always love your videos.
@pasito287
@pasito287 Ай бұрын
🎉🎉🎉🎉
@engineerchirag
@engineerchirag Ай бұрын
Awesome. More videos to come. Keep learning, keep sharing 🚀
@engineerchirag
@engineerchirag Ай бұрын
❤️❤️
@shubhamthaker9380
@shubhamthaker9380 28 күн бұрын
which company and can you please tell me some more intresting questions asked
@lalit422
@lalit422 26 күн бұрын
Amazing work @Chirag. Even though I have 13 years of experience and have learned a lot from you, Thanks, bro
@artofcoding2010
@artofcoding2010 Ай бұрын
Best interview series on internet. This video made my day. Thanks Chirag sir once again for this gem
@engineerchirag
@engineerchirag Ай бұрын
Thanks a ton ❤️
@chromegoogle-yi4jv
@chromegoogle-yi4jv Ай бұрын
Good stuff, many things to learn
@engineerchirag
@engineerchirag Ай бұрын
Glad you liked it. Keep watching, keep sharing 🚀
@ankitkashyap2005
@ankitkashyap2005 Ай бұрын
Hey , the question levels are just awesome.. I can't even imagine that this type of questions can be asked in interviews... Will follow this series to be updated
@engineerchirag
@engineerchirag Ай бұрын
Awesome. Keep learning, keep sharing 🚀
@mobilegaming9071
@mobilegaming9071 Ай бұрын
Geeting something new everytime,
@premkumarnayak2579
@premkumarnayak2579 Ай бұрын
Chirag, I have following you since a while, I would say you are doing a great job. 👍👍 The Problem statements you come up with are very unique and organised, I am learning a lot from this series. I was expecting someone from same experience level to come for this series. I wish I would be there some day on this series as well 😂, Just Kidding. For Pavan, I would say, He should be pushed to next Round. 👍 keep up the great work.
@engineerchirag
@engineerchirag Ай бұрын
Thanks for the feedback ❣️
@madhanrock5390
@madhanrock5390 Ай бұрын
Thank you so much for spending time in mock interviews and sharing with us. Wonderful session as always ☺️
@engineerchirag
@engineerchirag Ай бұрын
Glad you enjoyed it! ❣️
@Piyush-xv1bb
@Piyush-xv1bb Ай бұрын
One more Gem from Chakde frontend ❤❤❤
@engineerchirag
@engineerchirag Ай бұрын
Keep watching, keep sharing 🚀 Many more to come ❤️
@wadhwa_neeraj
@wadhwa_neeraj Ай бұрын
I think Pawan was updating the timestamp at the time of getting the data/key, that's why the timestamps at the end are the same (same problem as the setAsyncData being passed 0 for timeout value in setTimeout).
@ssmohanty153
@ssmohanty153 Ай бұрын
Keep the series going, really helpful
@engineerchirag
@engineerchirag Ай бұрын
Thanks, pls help to spread this series 🙏❤️
@megatron9151
@megatron9151 Ай бұрын
Really good choice of questions. Learnt a lot
@engineerchirag
@engineerchirag Ай бұрын
Glad to hear! ❣️
@shubhamsaini5542
@shubhamsaini5542 26 күн бұрын
very knowledgeable
@jsuryakt
@jsuryakt Ай бұрын
Great interview and top candidate 🚀
@engineerchirag
@engineerchirag Ай бұрын
Awesome ❣️ Many more to come. Keep watching, keep sharing 🚀
@gunjanvyas695
@gunjanvyas695 Ай бұрын
Yooo!!! Best js interview of the whole Chakde frontend interview series. My solution: //LRU cache automatic cache clear // approach 1: which came to my mind at first /* lets have a cache array in which i'll be putting cache data and will try to add the time when we have added it in it. will run a auto clear cache function after certain time and it will check sort the array based on time, the items which are added. will remove least recently used */ let count = 0; let cache = new Array(5); cache.fill({ item: "2", time: 10 }); function addToCache(data) { let currentTime = Date.now(); cache.push({ item: data, time: currentTime + count }); count++; } function LRU(data) { cache.sort((a, b) => a - b); let leastRecentlyUsed = cache[0]; console.log("leastRecentlyUsed", leastRecentlyUsed); cache.shift(); addToCache(data); } function pushDataToCache(data) { if (cache.length !== 5) { addToCache(data); } else { LRU(data); } } pushDataToCache(40); pushDataToCache(50); pushDataToCache(60); pushDataToCache(30); pushDataToCache(10); pushDataToCache(1); pushDataToCache(50); console.log(cache); function getValueFromCache(data){ let finding = cache.find(item => item.item === data); if(!finding){ console.log(data, "Not found"); return; } console.log(data, "Yes item found",finding); } getValueFromCache(50); getValueFromCache(40); Thank you, Chirag Sir
@engineerchirag
@engineerchirag Ай бұрын
Great you liked it ❤️
@CK-ir2ke
@CK-ir2ke Ай бұрын
Really nice learning something different from you always new things, please add time stamps if its possible?
@engineerchirag
@engineerchirag Ай бұрын
Noted. 👍
@kumarswamy2979
@kumarswamy2979 Ай бұрын
amazing session. So much to learn. Thanks a lot, Chirag for the take up this series.
@engineerchirag
@engineerchirag Ай бұрын
Glad you liked it❤️
@pratikwadekar4981
@pratikwadekar4981 Ай бұрын
What is the code editor that you are using Chirag ?
@ankushladani496
@ankushladani496 Ай бұрын
Thanks Sirji...❤🎉
@engineerchirag
@engineerchirag 28 күн бұрын
❣️
@mohammadsalman9370
@mohammadsalman9370 27 күн бұрын
Hi Chirag, I have 5+ years of experience in UI development with Tech skills: HTML5,CSS3 Bootstrap,Tailwind CSS,Responsive Design, Media Queries. I have knowledge on Javascript and Vuejs framework just i want to improve deep knowledge and Strong experience in Javascript and other Framework like React. I know the way how to do but coming to real time, i am facing difficulty to solve problems and logical ways. Can you suggest how can I overcome from this difficulties to solve problems in logical way.
@karthiksundaram544
@karthiksundaram544 Ай бұрын
@engineerchirag
@engineerchirag Ай бұрын
❣️
@onecuriousmuggle
@onecuriousmuggle Ай бұрын
Great set of questions, Chirag. Though, I have a doubt here, Using Map would be helpfull to handle the space complexity better but how is the order insertion helpful? As in map order is only updated at the time whn the values are set for the first time so later on when we set it or last access it, order wont be updated.
@engineerchirag
@engineerchirag Ай бұрын
❤️
@BLcKHCK-ct4wn
@BLcKHCK-ct4wn Ай бұрын
Love from kerala ❤
@PRANAVMAPPOLI
@PRANAVMAPPOLI Ай бұрын
🥳me too
@sauravkumarjha6162
@sauravkumarjha6162 Ай бұрын
Good stuff. Chiraj could you please upload the mock interview for 2 years experienced candidates.
@engineerchirag
@engineerchirag Ай бұрын
Definitely. It's in pipeline. Will be live soon 🚀
@sauravkumarjha6162
@sauravkumarjha6162 Ай бұрын
@@engineerchirag Thanks
@samudralaraju3594
@samudralaraju3594 27 күн бұрын
Hi sir my self raju .I have been completd gradution since 2018 bsc(science background).After i am prepared competative exms but could not clear the exms.i am intrested to frontend developer can i learn frontend course.your valuble suggestion sir. i am also telugu medium background student
@PRANAVMAPPOLI
@PRANAVMAPPOLI Ай бұрын
Hi chirag , So for LRU cache question , are you expecting the solution with map & linked list?
@engineerchirag
@engineerchirag 28 күн бұрын
Both are good options 😃
@mayurwankhade7447
@mayurwankhade7447 29 күн бұрын
Please share which tool you are using for questions? First i thought it is codepen. But it is something different. Is it made by you?
@engineerchirag
@engineerchirag 28 күн бұрын
DM pls
@deep90402
@deep90402 Ай бұрын
Please make videos for react interview as well
@engineerchirag
@engineerchirag Ай бұрын
Hey watch this react interview and stay tuned more react interviews are lined up kzfaq.info/get/bejne/q653p91z057QpX0.htmlsi=O24RWRLpjAbZlEm0
@nisargbarot1998
@nisargbarot1998 Ай бұрын
Hi Chirag sir, can you suggest some resources where we can practice these kind of questions to prepare for our interview.
@engineerchirag
@engineerchirag 28 күн бұрын
Chakde Frontend Interviews series 😛
@AmitGupta-su3yw
@AmitGupta-su3yw Ай бұрын
You bring really good question @chirag but I will not select this man as he has 9yr of exp. and instead of making thing simple, he just make it more complicated. btw thanks for bringing such a question which will help people to thinks in real-time when a person giving interview.
@engineerchirag
@engineerchirag 28 күн бұрын
Thanks for feedback 👍
@minter-07
@minter-07 Ай бұрын
What platform you are using to write code? Btw nice and informative video, a request is, your voice echoes a lot so please if possible improve it thanks for the video ❤
@engineerchirag
@engineerchirag Ай бұрын
Let me work on Audio quality 👍
@minter-07
@minter-07 Ай бұрын
@@engineerchiragthank you sirji btw what platform it is on which candidate is coding?
@sudiptakumardas3547
@sudiptakumardas3547 Ай бұрын
Hi Chirag, Can you please suggest some resource where we can practice these type of question?
@engineerchirag
@engineerchirag 28 күн бұрын
Chakde Frontend Interviews series 😛
Ай бұрын
Asking Just out of curiosity Being an engineering manager at MS, how much you need to code in daily basis?
@engineerchirag
@engineerchirag 28 күн бұрын
I find time for coding 😃
@yashsolanki069
@yashsolanki069 Ай бұрын
I've had some bad experiences with object in terms of maintaining the order. If the key is something that can be sorted the object follows the sorting stuff. Really weird shit in js. new Map() is what i had solved some of the order maintaining challenges so that should work here as well. I must say pawan's skills are top notch💯 Thanks again for bringing the best content out there Chirag!!!
@engineerchirag
@engineerchirag Ай бұрын
❤️
@DvvAvinash
@DvvAvinash Ай бұрын
Hi Chirag, would you be open to conducting a mock interview with me? I’d really appreciate your guidance and feedback. Thanks!
@engineerchirag
@engineerchirag Ай бұрын
Fill the form
@deep90402
@deep90402 Ай бұрын
How should junior developer should answer in interview and explain our approach to the interviewer.
@engineerchirag
@engineerchirag Ай бұрын
These interviews will help you
@kanaiyatiwari6748
@kanaiyatiwari6748 Ай бұрын
can you make video on how senior developer code and review code of junior developer
@engineerchirag
@engineerchirag Ай бұрын
Noted 👍
@Herxh428
@Herxh428 Ай бұрын
+1
@vanchivikash3586
@vanchivikash3586 29 күн бұрын
can i know where can i get practice problems like those in the video
@engineerchirag
@engineerchirag 28 күн бұрын
Every Saturday on Chakde Frontend Interview series 😛
@kishanmundadiya4982
@kishanmundadiya4982 Ай бұрын
Sir, what about backend mock interview 😅
@engineerchirag
@engineerchirag Ай бұрын
Haha apka hukum sar akho par 😛
@suryasaini1844
@suryasaini1844 Ай бұрын
I want to give the mock interview. But I don't think I can pass! 😂
@engineerchirag
@engineerchirag Ай бұрын
Fill the form.
@keshavkuljeet2929
@keshavkuljeet2929 29 күн бұрын
what online compiler are you using to code?
@engineerchirag
@engineerchirag 28 күн бұрын
DM pls
@SanjayYadav-ur4qj
@SanjayYadav-ur4qj Ай бұрын
Great learning. One doubt, If we use a map then time complexity would still be O(n). Right? What do you think about my solution? I didn't use timestamp. Just used a queue. class LRUCache { constructor(size = 20) { this.cache = {}; this.keys = []; this.size = size; } #moveToMostRecentlyUsed(key) { let indexOfKey = this.keys.indexOf(key); while (indexOfKey < this.keys.length - 1) { const temp = this.keys[indexOfKey]; this.keys[indexOfKey] = this.keys[indexOfKey + 1]; this.keys[indexOfKey + 1] = temp; indexOfKey++; } } set(key, data) { if (Object.hasOwn(this.cache, key)) { this.#moveToMostRecentlyUsed(key); } else { if (this.keys.length >= this.size) { const lruKey = this.keys.shift(); delete this.cache[lruKey]; } this.keys.push(key); this.cache[key] = data; } } get(key) { if (!Object.hasOwn(this.cache, key)) { return; } this.#moveToMostRecentlyUsed(key); return this.cache[key]; } delete(key) { if (!Object.hasOwn(this.cache, key)) return; delete this.cache[key]; this.keys.splice(this.keys.indexOf(key), 1); } } /************ Test Cases **************/ const lruCache = new LRUCache((size = 3)); // lruCache.set("1", "one"); // lruCache.set("2", "two"); // lruCache.set("3", "three"); // lruCache.set("2"); // lruCache.set("4", "four"); // // lruCache.delete("4"); // console.log(lruCache.keys.at(-1)); function asyncData(key, data, time) { setTimeout(() => { lruCache.set(key, data); }, time); } asyncData("1", "one", 0); asyncData("2", "two", 0); asyncData("3", "three", 0); asyncData("4", "four", 0); setTimeout(() => { console.log(lruCache.keys.at(-1)); console.log(lruCache.get("2")); console.log(lruCache.keys.at(-1)); }, 2000);
@sumitkumardey3268
@sumitkumardey3268 Ай бұрын
Lovey @chirag. Best of Luck
@engineerchirag
@engineerchirag Ай бұрын
❤️
@Coding_Asmr_PraDev
@Coding_Asmr_PraDev Ай бұрын
Keep the series going, really helpful
@engineerchirag
@engineerchirag Ай бұрын
Keep learning, keep sharing 🚀
@mayurwankhade7447
@mayurwankhade7447 29 күн бұрын
Please share which tool you are using for questions? First i thought it was codepen. But it is something different. Is it made by you?
@engineerchirag
@engineerchirag 28 күн бұрын
DM pls
@mayurwankhade7447
@mayurwankhade7447 27 күн бұрын
@@engineerchirag hello sir, tried to DM on Twitter but it is only for blue tick users. Cannot dm there. Should I dm on LinkedIn?
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 20 МЛН
터키아이스크림🇹🇷🍦Turkish ice cream #funny #shorts
00:26
Byungari 병아리언니
Рет қаралды 25 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 20 МЛН
Solving Uber Frontend Interview Question | Interactive Shape
26:11
Devtools Tech
Рет қаралды 24 М.
(Q-5). Most Asked Interview Question || Kotak Interview || Javascript || Frontend
12:12
The Most Important Skill You Never Learned
34:56
Web Dev Simplified
Рет қаралды 161 М.
Google Frontend Interview With A Frontend Expert
47:59
Clément Mihailescu
Рет қаралды 1 МЛН
Beginner React.js Coding Interview (ft. Clément Mihailescu)
36:31
Ben Awad
Рет қаралды 2,1 МЛН
Is it Cake or Fake ? 🍰
00:53
A4
Рет қаралды 20 МЛН