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/06/06 08:42] 5.107.206.191 old revision restored (2026/05/29 22:42) |
notes:javascript_cheat_sheet [2026/06/07 15:47] (current) 38.252.202.246 old revision restored (2008/09/04 02:23) |
||
|---|---|---|---|
| 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=" | ||
| - | ==== Javascript | + | ==== Basic Syntax ==== |
| * 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 ==== | ||
| + | |||
| * | * | ||