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

Console and Expressions

6 exercisesEasy

JavaScript can calculate a result and make it visible immediately. An expression is any piece of code that produces a value; console.log lets you inspect that value while a program runs.

const tickets = 3; const price = 12; console.log("Total:", tickets * price); // Total: 36

You’ll practise reading expressions from the inside out, predicting their values, and using the console to check your reasoning. These small habits become especially useful when you start debugging larger programs.