I'm reading books on JavaScript programming, and I need an environment like Python's IDLE to type JavaScript commands into and then see the results like you would in IDLE.
Is there an environment where you can do such a thing?
I'm reading books on JavaScript programming, and I need an environment like Python's IDLE to type JavaScript commands into and then see the results like you would in IDLE.
Is there an environment where you can do such a thing?
Any of the major browsers (IE, FireFox, Chrome, Safari, etc..) will execute and display the results of JavaScript code that you put into it.
You can open the developer console in Chrome and in IE using F12 and in Firefox using Ctrl+Shift+K. Alternatively you can simply put it into a .html file.
I find http://jsfiddle.net/ to be a good test environment for trying things out (in JavaScript, HTML and CSS), if you just want to try something easily and now using your browser.
Mainstream browsers’ dev tools have a console for executing expressions:
See also Plunker. It is similar to the already mentioned jsFiddle.
Most of the answers centre on JavaScript code in the web browser. If you're interested in server-side JavaScript code (or more generally, JavaScript code in non-browser environments), then you've got a couple of other options:
node into a terminal.jjs, which depending on your OS will either be available automatically from the terminal, or found at $JAVA_HOME/bin/jjs.As for actual IDE's, you could use Visual Studio (express version is free). They've added better JS intellisense support in the past few releases.
Jetbrains Webstorm is an IDE you can use as well, if that's the sort of thing you're looking into.
Otherwise, there's probably an eclipse plugin.
There's also Sublime Text and Atom, that, with a few plugins, can do it very well.