2

I installed JavaScript development tools in eclipse and want to write code in eclipse IDE and see the result.Is it possible to see the result without the browser?

1 Answer 1

1

You can execute a javascript code using nodeJS, Provided you are not using any API's that require a browser environment (i.e for example you should not use any DOM manipulating api's in your code).

Steps to follow:
1)Write your code using a simple text editor and save the file with ".js" extension
2)Install nodeJS software
3)open command prompt and execute the command - node filename.js

NodeJS is a javascript runtime built on Chrome's V8 Javascript engine.

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.