2. Use jQuery to manipulate the elements of your HTML Web application.
6. Use HTML5 Canvas API and SVG API to draw graphics on a page; use CSS3 Transitions API to animate the changes of graphics over time; use SVG API to add interactivity to the graphics through DOM manipulation and event handling; use CSS3 Transitions API to animate the
1. No global variables
2. Use semicolons
3. Make sure your opening curly bracket is on the same line as the function definition
4. Don’t compare equality using == and != operators – use === and !== instead.
5. Always declare your variables using var keyword at the beginning of each scope (top of the function).
6. Use typeof operator to determine the type of an object or literal value in your code.
7. Think about how to name your variables properly and make themself-documenting as much as possible – this will help you organize your code and improve readability for yourself and other developers who might review it in future!
A library is essentially a set of functions that you can call, tell it what to do, and it will do it for you. A framework is more like your blueprint or architecture for building out your application. It lays out how your application is going to work and what it’s going to look like when it’s done.
1. Don’t forget about naming conventions
2. Pay attention to spacing and indentation
3. Make use of comments
4. Use semicolons correctly
1. Don’t use inline event handlers
2. Don’t use the for-in statement
3. Use the typeof operator first to test for null and undefined
4. Avoid using == with non-primitive values
5. Use === instead of ==
6. Use hasOwnProperty() when iterating over an object’s properties
7. Do not use eval() – ever!
8. Avoid using arguments inside functions
9. Always declare local variables with var
10. Don’t pass strings to setTimeout() and setInterval(); pass functions
* Create drop shadows (CSS3 has them now)
* Create rounded corners (CSS3 has them now)
* Have hover effects on links or buttons (CSS has them now)
* Animations (CSS3 has them now)
3. Minimize global variables and functions. They can cause name collisions in large projects, and they are difficult to debug. Instead, use private variables and functions inside modules if you are using the module pattern or use object literal notation instead of the module pattern or take advantage of HTML5’s custom data attributes by grabbing the data attribute value via jQuery for example: $(‘