Loading video player…

Records With Objects in Node (Overview)

In this course, you’ll go from one board game described as a record to a shelf helper that answers which games five friends can finish in thirty minutes, and then to a small program of your own.

Along the way, you’ll:

  • Describe one game as a record, with named fields for its title, players and minutes
  • Keep a shelf of records in a list and ask it questions
  • Find a game by its id, the sticker on the box, not by where it stands on the shelf

You’ll put these together in a board-game shelf helper that you build on-site, with tests checking every run. It selects games for a group, finds one by its id, and updates its playing time.

After that, you’ll write your own program on your computer, in two to three hours. Choose a game evening planner, a packing helper, a quiz report, or an idea of your own. You’ll decide what it should print, check it, and change one thing.

You’ll need arrays, loops and small functions that count, filter or search. The earlier JavaScript Basics courses teach all three. You’ll work in VS Code and in on-site exercises, with an optional mentor nearby.

This course comes with sample code and a cheat sheet. The sample code has the files you’ll create in the lessons, plus a starter and a solution for each exercise. Keep the JavaScript cheat sheet open as a quick reference while you work:

Download

Sample Code (.zip)

22.7 KB
Download

JavaScript Cheat Sheet (.pdf)

229.6 KB

First up is Describe One Thing With Named Fields, where one game becomes your first record.

Become a Member to join the conversation.