it looks so complicated that it has discouraged me from continuing with the freecodecamp. This course does not prepare the student for these projects. In html, I will simply make a reference to js file <src = “app.js” </ script>, but here what? How? I’ve looked at previous projects, and it’s terrible to do a reverse engineer. package json about splice serve.js and server.js so it probably refers to the application file var myApp = require(’./myApp’);, but should not it be in the course? Because I do not know, what will be the standard and whether it was not only in this project.
So am I correct I just have to take the root of time= date .now as get? and add second parameter natural?
I presume the solution is like that and I am stuck on dummy step.
var time = Date.now()
app.get("/"+time, function (req, res) {
res.json({utc: time});
});
app.get("/"+ time..getTime(), function (req, res) {
res.json({unix: time..getTime();});
});