Best Practices for Modern Javascript Development
A non-exhaustive list of good practices that will help you to become a better javascript developer
Javascript is definitely a very popular language on the web, and every web developer has to deal with it someday. For this article Jean-Baptiste Jung has compiled a non-exhaustive list of good practices that will help you to become a better javascript developer.
- Use the correct <script> tag
- Keep your code in an external file
- Don't wrap code in HTML comments
- Use a framework
- Always declare your variables using var
- Keep your code unobstructive
- Include your scripts at the bottom of your HTML files
- Use JSLint
- Don't use document.write
Lubov has been with DMXzone for 8 years now, contributing to the Content and Sales departments. She is bringing high quality content in the form of daily blog updates, reviews, tutorials, news, newsletters,update emails and extensions' manuals. If you have a product that needs publicity or any other questions about the entire DMXzone community, she is the one you can contact.
See All Postings From Lubov Cholakova >>
Comments
Be the first to write a comment
You must me logged in to write a comment.