Javascript errors - understanding and correcting errors in javascript - online javascript help
javascript errors, understanding and correcting errors in javascript, online javascript help
JavaScript Errors - Understanding and CorrectingGo to JavaScript Errors - Understanding and CorrectingJavaScript tutorialGo to JavaScript tutorialWeb development tutorialsGo to web development tutorialsHomepage

Main navigation links of JavaScript Tutorial section

JavaScript Errors - Understanding and Correcting

A short note about errors before we proceed to the next session.

When you are learning a new programming language it takes time to understand its syntax. Your code might have a few bugs; it's okay as long as you know how to correct them.

JavaScript beginners mainly make three kinds of errors

  • They might try to call a variable that is not yet defined.
    Solution: Remember to always initialize all variables you expect to use in the script.
    JavaSCript Error in Internet Explorer
  • Forgetting the starting or ending quote or parenthesis as in a method or function.
    Solution: Place the opening and ending parenthesis or quotes together, then write the code/text between them.
    JavaSCript Error in Internet Explorer
    JavaSCript Error in Internet Explorer
  • Using a property or method that does not belong to an object, for example, using document.alert() instead of window.alert().
    Solution: You don't have to learn each and every object's properties and methods at the very start... you'll get the hang of it all gradually.
    JavaSCript Error in Internet Explorer


Online Workspace

Back Next


AddThis Social Bookmark Button
Page contents: Javascript errors - understanding and correcting errors in javascript - online javascript help

Page URL: http://www.webdevelopersnotes.com/tutorials/javascript/ understanding_correcting_javascript_errors.php3



Join Mailing List


Feedback/Questions




50+ web hosting FAQs

Search engine for your website

Free software from Google - The Google Pack Collection

Create your own search engine
Search WebDevelopersNotes.com