And if so, how do I go about installing Node js?
What environment ?
Did you try looking up “node js”?
JS is available to use on every browser. So simply write a JS file. Create a basic HTML page in which you embed your script and you’re good to go.
Depends what you want to do. For basic JS it is unlikely ou need it.
You can also use online services such as JS Fiddle.
My environment is macOs Monterey. I type node js in the terminal of visual studio code and I got error message that said Cannot find module.
I’m not a Mac user and I don’t know in what state your machine is. I will assume you simply did not install node.