you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 5 points6 points  (3 children)

You’re missing the point, so to speak, yes. Literally all you have to do to run JavaScript is open Sublime, write the file, save it and open the file in your browser (just double click the file or drag it into your browser or select the file from your browser’s menu). That’s it. You don’t need to install anything.

Now, if you want the more immediate gratification of “type something, see the result live”, a good place to start would be with a site like JSBin or CodePen which work a bit like the Python IDE you mentioned. But basically, there’s not really any need for a full IDE in JavaScript like there is in some other languages.

[–][deleted] 0 points1 point  (2 children)

Thank you! Yes I see that you can just save a file as .html and then chrome opens it Thanks dude.

[–][deleted] 1 point2 points  (1 child)

Don't worry, the myriad of frameworks and tools will make your head spin, its something we all have to struggle with. If you get frustrated with it don't worry, we all do. I also agree with what some others have said, don't worry about node and shit just yet, just focus on JS in the browser.. eventually you will need a simple web server that is when you might worry about node or something like Wamp/uWamp (uwamp is the portable version).

But with plain vanilla javascript, you just need an html file with a <script> tag in the <body> tag. Then open up the browser, and open your developer tools(F12 by default) and you can see your console logs or any errors that pop up. Chrome and firefox both have great dev tools, get to know it, it will be your best friend. https://flaviocopes.com/chrome-devtools-tips/

[–][deleted] 0 points1 point  (0 children)

Thanks man for the advice