Tell us what’s happening:
I don’t know why I keep failing this challenge I think I’ve tried everything I know
Your code so far
for my public/styles.css
app.use("/public", express.static(__dirname + "/public"));
for myApp.js
let express = require('express');
let app = express();
app.get("/", function (req, res) {
res.sendFile(__dirname + "/views/index.html");
});
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/106.0.0.0 Safari/537.36
Challenge: Basic Node and Express - Serve Static Assets
Link to the challenge: