1. You must master “for loops”.
2. You should manage public variables carefully.
3. You need to adopt strict data typing.
4. Use class manipulation for graphical effect. Never cause a style attribute to be attached to an object directly. (do not access the object.style property, such as “object.style.color=”#FF44FF”) In other words, the only styles to be implemented are those CSS Level II styles stored in a stylesheet.
6. Never write to the document using the document.write() method.