Loading exercise...

Exercise: Send the Plot List

This is the course’s first coding exercise, where you get Mrs. Okafor’s plot board answering every caller. If you haven’t solved a coding exercise on RealJS before, then this section shows you how the editor and its tests work before you start.

How Coding Exercises Work

A coding exercise runs right here in your browser, on Node 26, the current long-term support release. The editor above holds server.ts, the file you change. Click Run Tests or press Ctrl+Enter (Cmd+Enter on macOS), and automated tests check your code and mark each test as passed or failed.

In this exercise, the tests start your server themselves and call it with real HTTP requests, the way curl -i and fetch() did in the lessons. They read each response’s status, headers, and body. So you don’t need to call listen() or run anything in a terminal.

Run the tests early and often, even before you change anything. A failing test’s message tells you what it found and what it expected, so read it before you edit. Fix the first failing test, then run the tests again. A different failing test usually means you made progress!

Locked learning resources

Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Locked learning resources

The full lesson is for members only. Join us and get access to thousands of tutorials and a community of expert JavaScript developers.

Unlock This Lesson

Already a member? Sign-In

Become a Member to join the conversation.