If you wanna make art of your code, take a look at JSLint. It is a javascript code quality tool, created by Douglas Crockford - world famous js evangelist and author.
Here is a way how to download it with NPM ( node package manager ) and test your code:
In terminal type :
I suppose you know what is nodejs, and you that are using linux or mac.
If you are on windows take a look around, there is a guide somewhere, I am sure.
Next, create a js file, and put some code inside. I am sure that you'll be surprised with the result after testing. Now move to that folder ( where the file is ) and type jslint name of file.js and learn from the results.
Update to post:
If you are using Vim with syntastic plugin, than JSLint which you installed globally ( with -g flag ) will check all your js script during coding in vim.
Happy Coding.
Here is a way how to download it with NPM ( node package manager ) and test your code:
In terminal type :
sudo npm install jslint -g
I suppose you know what is nodejs, and you that are using linux or mac.
If you are on windows take a look around, there is a guide somewhere, I am sure.
Next, create a js file, and put some code inside. I am sure that you'll be surprised with the result after testing. Now move to that folder ( where the file is ) and type jslint name of file.js and learn from the results.
Update to post:
If you are using Vim with syntastic plugin, than JSLint which you installed globally ( with -g flag ) will check all your js script during coding in vim.
Happy Coding.
No comments:
Post a Comment