Basic Node and Express - Start a Working Express Server

Tell us what’s happening:

I have this in myApp.js and still getting same error" Your app should serve string “Hello Express”

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

console.log("Hello world");

app.get('/', (req, res) => {

    res.send("Hello Express");
   });

###Your project link(s)

solution: http://localhost:3000

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/123.0.0.0 Safari/537.36 Edg/123.0.0.0

Challenge Information:

Basic Node and Express - Start a Working Express Server

I assume you didn’t remove the export at the bottom, as that would throw an error. Also, make sure you restart the server after the change.

Other than that, your code should be passing.

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