"Hello Node" error when testing

I’m on the first exercise of the Node.js tutorials for backend and no matter where I run the code, I can’t get anything to print in the console.

The exercise:

My code:

var express = require('express');
var app = express();

console.log("Hello World");

I haven’t changed any of the other files.

Your code is correct. Try restarting the server. Run and Stop button.
I paste your code and it is passing the test

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.