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:18] 43.106.8.142 old revision restored (2026/08/10 14:16) |
notes:javascript_cheat_sheet [2026/09/16 14:21] (current) 47.79.206.60 old revision restored (2026/06/24 04:05) |
||
|---|---|---|---|
| Line 22: | Line 22: | ||
| * In an external file called from either the head or the body e.g. <script src=" | * In an external file called from either the head or the body e.g. <script src=" | ||
| - | ==== Basic Syntax ==== | + | ==== Javascript |
| * JavaScript is case-sensitive. | * JavaScript is case-sensitive. | ||
| Line 30: | Line 30: | ||
| * JavaScript variables are case-sensitive and must begin with a letter or underscore. | * 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; | * Variables are automatically declared when first used but should be explicitly declared using e.g. var a = 5; | ||
| - | * JavaScript uses standard C/Java operators e.g. +-*/%, ++, +=, &&, ||, !, + (concatenation). | ||
| - | * JavaScript uses C/Java comparators >,> | ||
| - | |||
| - | ==== Basic Structures ==== | ||
| - | |||
| * | * | ||