This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:javascript_cheat_sheet [2026/09/14 12:50] 185.191.52.16 old revision restored (2026/08/02 18:30) |
notes:javascript_cheat_sheet [2026/09/16 14:21] (current) 47.79.206.60 old revision restored (2026/06/24 04:05) |
||
|---|---|---|---|
| Line 24: | Line 24: | ||
| ==== Javascript Basic Syntax ==== | ==== Javascript Basic Syntax ==== | ||
| + | * JavaScript is case-sensitive. | ||
| + | * Statements may omit the final semi-colon but should not. | ||
| + | * Blocks may be grouped together using curly braces { }. | ||
| + | * JavaScript uses java-style comments: // and /* */. | ||
| + | * JavaScript variables are case-sensitive and must begin with a letter or underscore. | ||
| + | * Variables are automatically declared when first used but should be explicitly declared using e.g. var a = 5; | ||
| * | * | ||