This document provides tips for programming including:
- Using semi-colons at the end of everything and == for comparisons
- Variables can be overwritten and must be declared with "VAR" before assigning a value
- Code is case sensitive and ordering of variables is important
- "//" can be used for comments without affecting program execution
- The "prompt" variable displays a window asking for user input and "alert" displays a message
- When stored as a prompt, something is a string
- parseInt picks out numerical values from a string
- Don't rely on > or <, use defined ranges
- Don't put semicolons at the end of for loops and var++ is the same as