Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver2
133いいね 2791回再生

Exercises: Recursion - Javascript In Depth

Let's go through some practice exercises together on recursion in Javascript. We warmup with a common interview question "FizzBuzz" - recursive edition, followed by figuring out how to see if a String is a palindrome or not. These can be done without recursion, so it's good to see this as an alternative.

We then move to the more challenging and real-world use cases for recursion. We take a look at how to flatten an Array regardless of the nesting level. We also see how we can "flatten" an Object using recursion.

To wrap up the video we take a look at how a DOM Object works from the Browser world, and how we can use recursion to reconstruct the HTML from this DOM. This is very similar to how the Browser does it back and forth itself.

This is part of a series where we go over Javascript in depth to learn programming concepts as well as web development:    • Javascript In Depth  

Chapters:
00:00 Introduction
01:57 Warmup Exercise - FizzBuzz
14:00 Exercise 1 - Palindrome
27:00 Exercise 2 - Flatten Array
38:57 Exercise 3 - Flatten Object
53:14 BONUS Exercise - DOM to HTML
1:16:08 Next Steps

📦 Github Repository with the notes and exercise code+solutions: github.com/Nooder/javascript-in-depth
💬 Come join us on Discord to chat with a like-minded community about tech and learning: discord.gg/K4nkugP7Gd
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: www.patreon.com/TechWithNader

コメント