Syntax defines the set of rules for writing programs. Every language specification defines its own syntax.
A JavaScript program can be composed of:
Variables: Represents a named memory block that can store values for the program.
Literals: Represents constant/fixed values.
Operators: Symbols that define how the operands will be processed.
Keywords: Words that have a special meaning in the context of a language.