Probably one of the easiest ways to test out code with minimum effort.
1. Pick a JS Framework or extension.
2. Pick the load event.
3. Give it a name and description (if you want)
5. Enter your HTML
7. Enter your CSS
8. Run it, save it, test it, play with it.
Visit JSFiddle and try it out.
You can also get the source-code under MIT, or get an extension for your browser or IDE.
Simply paste your ugly code into the website, pick your preferred settings (indentation for example) and hit the button. Lovely code will soon appear.
Visit JSBeautifier and try it out.
JSLint will go through your code, line by line, giving you an in-depth analysis of any potential problems.
Visit JSLint and try it out.
Look out for the second instalment…