express set public folder javascript code example Example: express public folder app.use(express.static('public')) app.use(express.static('files'))