I have done my best but can't pass this test help

**I have not completed the challenge, but I have seen the html just that the public is not applied `var express = require(‘express’);
var app = express();

//next

/** 4) Serve static assets */
app.use(express.static(__dirname + ‘/public/’));

app.get("/", function(req, res) {
res.sendFile("/views/index.html", { root : __dirname});
});

module.exports = app;
`**

Your code so far

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; itel A16 Plus) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 Mobile Safari/537.36.

Challenge: Serve Static Assets

Link to the challenge:
https://www.freecodecamp.org/learn/apis-and-microservices/basic-node-and-express/serve-static-assetsPreformatted text

3 posts were merged into an existing topic: Can’t pass this challenge help

Please do not create duplicate topics for the same challenge/project question(s). This duplicate topic has been unlisted.

Thank you.

1 Like