In an external file called from either the head or the body e.g. <script src=“abc.js”></script>
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;
* 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.1784924741.txt.gz · Last modified: 2026/07/24 13:25 by 186.14.58.145 · Currently locked by: 47.79.200.8,10.56.12.109