0 of 8 problems solved • 0%
Use in a course

Exercise prompt

Use a Constant

Once a value has a name, you can use that variable anywhere you would have written the value itself. This makes the meaning of the code clearer.

Example

const room = "Library"; console.log("Room:", room);

This prints Room: Library. Your exercise describes a course.

Your task

Give courseName the value JavaScript. Keep the existing console call so it displays Course: JavaScript.