Tell us what’s happening:
I keep getting error when I copy the link to the first nodejs task on glitch where I am trying to print Hello World in the console. i suspect it has something to do with the link
Your code so far
var express = require(‘express’);
var app = express();
// --> 7) Mount the Logger middleware here
// --> 11) Mount the body-parser middleware here
/** 1) Meet the node console. */
console.log(‘Hello World’)
/** 2) A first working Express Server */
/** 3) Serve an HTML file */
/** 4) Serve static assets */
/** 5) serve JSON on a specific route */
/** 6) Use the .env file to configure the app */
/** 7) Root-level Middleware - A logger */
// place it before all the routes !
/** 8) Chaining middleware. A Time server */
/** 9) Get input from client - Route parameters */
/** 10) Get input from client - Query parameters */
// /name?first=&last=
/** 11) Get ready for POST Requests - the body-parser
*/
// place it before all the routes !
/** 12) Get data form POST */
// This would be part of the basic setup of an Express app
// but to allow FCC to run tests, the server is already active
/** app.listen(process.env.PORT || 3000 ); */
//---------- DO NOT EDIT BELOW THIS LINE --------------------
module.exports = app;
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.149 Safari/537.36
.
Challenge: undefined
Link to the challenge: