Course “JS: Trees”

Course updated on April 29, 2025

Subscribe

Access this and all courses with a subscription

What's included

Theory: 9 lessons
Exercises: 8
Questions: 27
Self-study tasks
Extra materials
Extended materials for 9 lessons

Description

In the realm of computers, a lot of things are structured like trees. Product categories, the file system, source code, comments, HTML, XML, JSON, and other elements are a few examples. These structures all share the property of being recursive. To put it another way, any internal component has the potential to fully transform into an exterior component. Any part of JSON is JSON itself. This fact has a significant impact on organizational methods and working principles with such structures. They extensively employ tree-like recursion, which calls for careful planning.

You will learn

  • Understand the principles of the tree structure and construction
  • Represent in code and process recursive data, for example, a file system, directories or comment trees
  • Build abstractions on top of tree-like data structures
  • Use a functional paradigm

Syllabus

1

Introduction

Meet the course and its goals

2

Definitions

Grasp the tree terminology

3

Virtual file system

Explore a library that can create files in memory

4

Manipulating the virtual file system

Learn how to change the file system in an immutable paradigm

5

Tree traversal

Meet the "tree traversal" concept

6

Aggregation

Learn how to extract the target data from the tree

7

Aggregation 2

Learn how to get a composite result (array) of tree traversal

8

Accumulator

Learn how to collect additional data when traversing a tree

9

HTML-tree

Learn to work with other trees using HTML markup as an example

Challenges

1

JSON stringify

2

Puzzle

3

Building an itinerary

4

Array as object

5

Map, filter, reduce

6

Dependency track

7

Transformer

8

Flattening (array)

Recommended programs

Course Cover
  • Run code right in the browser
  • Lifetime access
  • Learn at your own pace
Subscribe

Access this and all courses with a subscription