this is the my modified code of server.js
now i will get the error
syntax error :missing ) after arguments list
var express =require(‘express’);
var app = express();
app.use(express.static(E:/nodeprojects/phonedirectoryapp + "/public"));
app.listen(3000);
console.log("Server running on the port 3000");
In your example you are replacing the __dirname with the static path of the directory. So, you have to wrap it in the double quotes. Like folder name public is.
please help me i will not get this……
now message show on the browser that cannot GET/