Loading exercise...

Exercise: Write the Booking Prompt

In this exercise, you write the booking prompt yourself and the tests check what it contains. If this is your first coding exercise on RealJS, then start with how they work.

How Coding Exercises Work

A coding exercise runs right here in your browser. Write your 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.

The exercises in this course never call a model, so they need no key and cost nothing. The tests check what your code builds, such as the prompt it would send, and what it does with a model’s answer.

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.