Skip to content
DevTrail

DOM & Browser

Select, change and listen: from querySelector to canvas games.

modules
12
topics
31
exercises
31
of practice
32 h 45 min

About this course

Every DOM exercise, ordered from basic to advanced: selecting and walking the DOM, creating elements, rendering data, events and delegation, forms, CRUD apps with localStorage, drag and drop, canvas, and testing with Jest.

What you'll learn

12 modules and 31 topics. Every topic has short lessons, a quiz, hands-on exercises checked in your browser, and interview questions.

  1. 1Selecting & Walking the DOM

    Practises querySelector, querySelectorAll, getElementById, attribute selectors, children, parent and sibling properties.

    • Selectors & DOM Traversal
  2. 2Changing, Creating & Removing Elements

    Practises style, classList, createElement, append, prepend, replaceChildren and node vs element.

    • Manipulating the 17 Boxes
    • Building Elements with Functions
  3. 3Rendering Data to the Page

    Practises looping over data and building UI from it.

    • Bookly: Book List App
    • People of GOT App
  4. 4Date & Timers

    Practises the Date object and setInterval.

    • Dynamic Clock
  5. 5Events Basics

    Practises addEventListener, click and mouse events, and the event object.

    • Random Color Generator
    • Disco Grid
    • Rock, Paper, Scissors
    • Calculator
  6. 6Event Delegation

    Practises one listener on a parent vs many listeners, event.target and setTimeout.

    • Flip Box
  7. 7Forms

    Practises reading form inputs, submit events, preventDefault, modals and validation.

    • Handling Different Input Elements
    • Form Validation
  8. 8CRUD Apps & localStorage

    Practises adding, deleting, toggling and filtering items, re-rendering UI and saving state.

    • Movie Watch List
    • TODO App (TodoMVC clone)
    • People of GOT: Filter by House & Search
  9. 9Mini Projects

    Pulls everything together into complete apps.

    • Memory Game
    • TODO List as a Chrome Extension
    • Your Own Chrome Extension
  10. 10Advanced DOM Interactions

    Practises scroll events, dblclick, blur, the drag-and-drop API and keyboard events.

    • Infinite Scroll Quotes
    • Notice Board (edit on double-click)
    • Drag and Drop Todo List
    • Drag and Drop Icon Game
    • Move an Image with Arrow Keys
  11. 11Canvas & Animation

    Practises the canvas API, requestAnimationFrame and collision logic.

    • Bubbles with Gravity
    • 2D Breakout Game
    • Game Using Canvas
  12. 12Tooling & Testing

    Practises npm, a bundler (Parcel) and unit tests with Jest.

    • Node, npm & Parcel Setup
    • Jest: Writing Your First Tests
    • Jest: Testing Classes, Arrays & Higher-Order Functions
    • Jest: checkFive & Rock-Paper-Scissors