JS Syntax
JavaScript has rules for names, strings, brackets, and expressions. A statement can store a value or perform an action.
Where to run this
This example uses the JavaScript console playground. Select Run to execute it; the example does not run on this lesson page.
A practical example
const workshop = "Repair club";
const price = 8;
console.log(workshop, price * 2);
What happens
The output shows the workshop name and a total of 16.