Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

I'm reading David Flanagan's "JavaScript: The Definitive Guide, 6th ed".

It only actually tells users how to run JS code on page 311, where users are told of the following solutions:

"Client-side JavaScript code is embedded within HTML documents in four ways:

  • Inline, between a pair of <script> and </script> tags
  • From an external file specified by the src attribute in a <script> tag
  • In an HTML event handler attribute, such as onclick or onmouseover
  • In a URL that uses the special javascript: protocol."

I was wondering what professional JS developers use to write and test their code: Do they use a good text editor with syntax high-lighting + autocompletion, hit F5 in the browser to reload the page every time they make a change, and use some add-on in the browser to investigate errors? Or are there full-fledged IDE's similar to MS VisualStudio for non-web languages?

share|improve this question

closed as off topic by paulmorriss Dec 17 '12 at 14:34

Questions on Webmasters Stack Exchange are expected to relate to webmastering within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

    
I have the 5th ed of that book and the first how-to on running JS code with a fully working example of client-side JavaScript is on page 4? –  w3d Dec 17 '12 at 15:30
1  
I don't think this is off topic. Yes, developers use good editors with syntax highlighting. Yes, we refresh a page when we need to test new/updated code. There is also the javascript console (e.g. press shift-ctrl-i in Chrome) which allows adding javascript to a page in real time. –  Charlie S Dec 17 '12 at 18:02

Browse other questions tagged or ask your own question.