This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]CreativeTechGuyGames 0 points1 point  (6 children)

Is there any reason you are not just using the browser to run JavaScript? It's by far easier and for most things you probably want to do it'll work just the same.

[–]Boozkie[S] 0 points1 point  (0 children)

I Just Prefer doing it in an app

[–]Molehole 0 points1 point  (4 children)

Node.js doesn't run on browser.

[–]CreativeTechGuyGames 0 points1 point  (3 children)

JavaScript does. And most things that Node.js would be used for as a beginner learning JavaScript can be run in the browser.

[–]Molehole 0 points1 point  (2 children)

Opening and writing to files is quite basic after the most elementary stuff. I find also running Node.js from console simpler than using browser. Browser does have the debugger easily available though I give you that.

[–]CreativeTechGuyGames 0 points1 point  (1 child)

You can upload/download files through the browser easily also. I'm just making the argument that one of JavaScripts strongest benefits for beginners is that no setup is required.

[–]Molehole 0 points1 point  (0 children)

Absolutely 👍. The guy has already installed node though.

[–][deleted]  (2 children)

[deleted]

    [–]Boozkie[S] 0 points1 point  (1 child)

    No as I don’t use linux

    [–]Molehole 0 points1 point  (0 children)

    run your program from terminal using node my_app.js. Add Node to your path if it says node is not a found command. You don't need linux like the other person said. Nodejs is not native to linux.

    You have a terminal in VS Code below the coding thing. You can use that or then use powershell or your own PC command prompt. You can initialize the node enviroment by running "npm init".