1

I am new to JavaScript but already know Python. On https://onecompiler.com/javascript I can easily type JavaScript code such as

console.log("Hello World")

and it logs Hello World in the console.

However, I recently installed WebStorm , but I don't know what Run/Debug Configuration I should choose to start with (I just want to type plain JavaScript):

Run/Debug Configuration

The image shows a list of configurations, however, none of them are called just JavaScript. What should I choose to just type plain JavaScript and be able to run the code?

1 Answer 1

1

For plain javascript the right configuration is Node.js. WebStorm auto-creates it for you when you right-click a .js file and choose Run or Debug.

If you javaScript code is supposed to be run in browser, you need creating *.html file that will be used as your app entry point, link your javascript to this file with the <script> tag and then use either Run or Debug from .html file right-click menu - the corresponding JavaScript Debug run configuration will be created and started.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.