< About me />Sunny Sharma• Trainer / Author / Speaker• [email protected]
om• Twitter: @sunny_delhi
Common Mistakes
Undefined Variable(s)
Misspelling
Case Sensitivity Issues
Missing / Mixed Quotes
Incorrect Number of Closing Braces
Incorrect Number of Closing Parenthesis
Using Method as a Property
Missing “+” during concatenation
NaN
Using Equals (=) Rather than Equality (==)
Debugging
alert();
console.log(“Hey!”);
try / catch / finally
Sequential Uncommenting
Steps:• Comment all your code• Uncomment first block of code (function)• Test if works fine• Uncomment next block of code• Test if still works fine• Carry on till you reach the end OR find the buggy line of code!