Site Tools


notes:javascript_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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="abc.js"></script>     * In an external file called from either the head or the body e.g. <script src="abc.js"></script>
  
-==== Javascript Basic Syntax ====+==== 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 >,>=,==, !=, a?b:c. It also uses === to test equality of value and type.
 +
 +==== Basic Structures ====
 +
   *    * 
notes/javascript_cheat_sheet.1780760576.txt.gz · Last modified: 2026/06/06 08:42 by 5.107.206.191