1 |
Variables (identifiers) must begin with a letter, underscore, or dollar sign:
|
2 | Declare variables in var statements: var aNumber = 137; var aString = "1"; |
3 | Embed variables in HTML attributes: <IMG SRC="&{v1};" WIDTH="&{v2};"> where v1 and v2 are JavaScript vars |