Node.js - a dumb question (and off topic)

Yeah,

So it has been determined that I have Node.js installed.

I'm still coming to grips with where Ubuntu puts its programs, so I am at a loss how to invoke it.

So I type node from the cli.

How do I exit when done?

quit doesn't work. exit doesn't work.
< ctl > d?

https://www.google.com/search?client=safari&rls=en&q=how+to+exit+node+js+command+prompt&ie=UTF-8&oe=UTF-8

3 Likes

process.exit()
.exit

1 Like

Thanks both.

I am just going through youtube getting some (more) JS videos.

I opened a session and was stuck how to exit.

Sorry I can't mark 2 as the solution.
No offence UKmoose.

Yes - that will exit as well.

1 Like

The subtle point that @ukmoose makes is that Google is your friend. Start there. Every problem you will ever have in life has been experienced by somebody before and probably stored on the Internet for your use.