Locked lesson.
About this lesson
What does JavaScript code look like?
Exercise files
Download this lesson’s related exercise files.
Syntax.docx58.7 KB Syntax - Solution.docx
58.9 KB
Quick reference
Syntax
JavaScript syntax is important.
When to use
Anytime you write JavaScript code, you need to follow the syntax rules.
Instructions
All JavaScript statements (lines of code) end in semi-colons.
Variables are named with lower case Camel Case (lowercase for the first word, uppercase for the second).
Quotation marks can be either double " or single '
Hints & tips
- JavaScript syntax is important!
- Lines in in semi-colons
- Variables are lower case Camel Case
- Quotation marks can be single or double
Lesson notes are only available for subscribers.