JavaScript syntax is a set of rules that govern how JavaScript code must be structured to be executable. JavaScript syntax ensures that developers adhere to a standardized format when writing code, allowing the JavaScript engine to interpret and execute it accurately.
let myVariable = 12;
const pi = 3.14;
var myVar = 63;
let num = 13;
let str = "Welcome to JavaScript!";
let boolVar = true;
let product = 1 * 2;
let isRight = (expr1 === expr2);
// This is a single-line comment
/*
This is a
multi-line comment
*/