Located on the api reference webpage, it is shown that Express.JS using the function
app.use('/', express.static(__dirname+'/public'));
should allow the static directory /public to be served.
here is my code.
var app = require('express');
var bodyparser = require('body-parser');
app.use('/', express.static(__dirname+'/public'));
app.listen('3000');
the response I get from the terminal is "express is not defined".
I copied this directly from working code,
why isn't this working?