Currently, I’m trying to learn Javascript by writing my code in Gedit then attempting to execute it via Firefox.
However, web browsers tend to fail silently whenever it encounters an error in my code, and I can’t quite shake the feeling that it’s also ignoring other, more minor, problems in my code. I’d really like to learn Javascript the right way, and not accidentally get in the habit of writing subtly wrong code.
Is there a way to set up a web browser or run Javascript so it screams loudly at every error or mistake, no matter how minor?
I looked into jslint — are there any other ways of accomplishing this that I might have missed?
I also quickly (read: 5 minutes) looked at strict mode but I’m not sure if that’s the same thing.
Use the console in firebug in order to view errors. Chrome has its own built in console which can be used for the same purpose. However, jslint is going to be much stricter than either console.