JavaScript: HelpDesk

Techniques

  • When copying JavaScript code, it must be super accurate as it is very fussy. Variables must be exact (e.g., MyVar MYVAR, myvar are not the same).


Debugging

It can be hard to work out where the problems occur in JavaScript

Fortunately Google Chrome (and others) have a Developer mode.

  • In Chrome Click on the three vertical dots (Customise and Control Google Chrome) > More Tools > Developer Tools.

  • This will pop up a pane on the right and under "Console" will indicate errors.

Example s

Mis-spelt reserved word (document)