How to EASILY traverse through a deeply nested object (JavaScript Interview Question)

preview_player
Показать описание
Explore how to traverse through a deeply nested object and access its key-value pairs in JavaScript.
Рекомендации по теме
Комментарии
Автор

16 Intermediate/Advanced JavaScript Projects to Dominate Your Next Technical Interview


- Lifetime access
- Full video explanations of building each project from scratch
- 10+ hours of premium content
- No bullshit, No time waste
- This project list Should get you ready for any JavaScript live coding interview round.
- Extremely cheap (less than $10)

Content list:
1. File Explorer (similar to vs-code)
2. Infinitely Nested comments
3. Advanced Custom Toast notification from scratch
4. Drag & Drop, Swap, Add and delete elements using JavaScript
5. Custom Calendar/Date-picker
6. Multi-Select dropdown with support to add & remove elements
7. Build a Memory game with all rules integrated
8. Build an analog clock with smooth animation
9. Dynamic Progress bar with custom input support
10. Build a Star rating system with dynamic hover effects
11. Build a tic tac toe game with best practices
12. Advanced To-Do List with Local Storage support
13. Accordion with smooth transition effects
14. Countdown timer & days remaining timer
15. Create a custom modal
16. Build an optimised Chessboard

xplodivity
Автор

Similiar to something like this asked in a interivew and I didn't get it .

TutorialTechie
Автор

there is a structuredClone function now imo for this.

amarg
Автор

Really good content. Please make more like this.

mr.angshuman
Автор

As expected in first case I get error as I didn't use paranthesis. But how the second case and third case get executed?

> function fun1(){return "hello"}()
Uncaught SyntaxError: Unexpected token ')'
> function fun2(x){return x*x}(5)
5
> 0, function fun3(x){return x*x}(5)
25

dumchik
Автор

If you wan't to impress any interviewer, solve the "directory" problem with a queue instead :)

evilspoon
join shbcf.ru