In light of the recent efforts to enhance our course creation experience we’ve added a new feature called Preview Mode.

Before, both course creators and students would see the same functionality when previewing an exercise. This made it difficult to catch submission test errors and generally debug courses.

To make debugging easier, the new Preview Mode adds a retractable console to show helpful messages and error logs. The console will show the following:

  • Errors in the submission correctness test (SCT).
  • Errors in the student code.
  • Helpful debugging messages and warnings.

Now that we distinguish between preview and student modes, we define different behaviors for our teachers and students:

  • Erroneous SCTs will pass in student view (so our students don’t get blocked).
  • Erroneous SCTs will fail with a console message in preview mode.
  • Preview Mode will always show up-to-date default code in the editors unless chosen otherwise.

Want to learn more? Read the official documentation here.

687474703a2f2f636c2e6c792f3131326633393334334531793234324d336b31482f53637265656e25323053686f74253230323031322d30362d31302532306174253230352e33312e3535253230414d2e706e67

Related articles

7 articles
What-Is-CoffeeScript-.png?w=1024

What Is CoffeeScript?

08/09/2024
6 minutes
By Codecademy Team

What is CoffeeScript, and is it worth learning? In this article, we explain how it changed the way we write both front-end and back-end JavaScript code.