This is your first coding exercise in the course, so here’s how the exercise screen works before you start on the task.
How Coding Exercises Work
A coding exercise runs right here in your browser. Change the code in the editor above, then click Run Tests or press Ctrl+Enter (Cmd+Enter on macOS). Automated tests check your code and mark each test as passed or failed.
Run the tests early and often, even before you change anything. A failing test’s message says 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’ve made progress.
Note: If every test fails with the same short error, then your file couldn’t be read at all. Look for a missing or extra comma, colon or parenthesis near what you last typed, and fix that first.