Skip to content
Justice Tech School

JavaScript Syntax

A program is a list of statements, usually one per line and ending with a semicolon. Values can be literals (5, "text") or variables. Names are case sensitive: age and Age are different.

Use camelCase for variable and function names (firstName), and PascalCase for classes (UserAccount).

Example
let firstName = "Ada";
let FirstName = "Grace";
console.log(firstName);
console.log(FirstName);
console.log(firstName === FirstName);

Exercise

End the statement.

let x = 5

Quiz Test

Are myVar and myvar the same variable?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.