JavaScript/Debugging Challenges

These debugging challenges are written in JavaScript, and designed to complement the units: ICAB4225A Automate processes and ICAT4221A Locate equipment, system and software faults

Challenge Set 1 - Lexical Errors
Lexical errors are introduced when the programmer enters symbols that are not part of the programming language. Unlike when you misspell a word in English, this inevitably leads to a breakdown in programming communications. See if you can see (or find) the lexical errors in the following code snippets...

1 2 3 4 5

Challenge Set 2 - Syntactic Errors
A syntax error occurs when you use the right symbols, but in a way that doesn't make sense to the compiler or interpreter. Something like the English sentence: "You don't program good"

1 2 3 4 5 6

Challenge Set 3 - Execution Errors
Execution errors occur when the program has the correct syntax and lexicon, but you're making the wrong requests to get the results you desire.

1 2 3 4

Challenge Set 4 - Logic Errors
These are errors introduced Through faulty design. Once again, the syntax is correct, but the results are unexpected, usually because you haven't considered the data being processed. These are the hardest errors to spot, and often the most expensive to correct.

1 2 3