I’m trying to start studying node js.
after install node js(it was LTS) the console shows version well
and then i tried a very simple code in VS code just see how it works
but the console shows no result. I expected to see hello world from console.log code
function hello(name) {
console.log(" Hello!" + name );
}
hello("World");
I don’t know why it’s not working… and also it shows no error code too
2
Answers
This was very simple problem... all the directory name should be written in ENG...
I think you are omitting the .js
so like
try
node hello.js
also exit repl if you haven’t already
or you haven’t saved your file? Happens to me a lot