Created
May 17, 2012 05:56
-
-
Save pamelafox/2716823 to your computer and use it in GitHub Desktop.
JS Errors and Causes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
These arent always the causes, just in the cases I saw them. | |
Unexpected { | |
Cause: mismatched curly braces, count your braces | |
Unexpected token . | |
Cause: var buttonDiv.bla = 4 | |
SyntaxError: Unexpected string | |
Cause: var bla = bla + ' hi ' ' you' | |
Cannot read property stuff of null | |
Cause: document.getElementById('bla').stuff - bla ID is wrong, either mis-spelled or wrong case (check your ID, copy and paste) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment