diff --git a/nodejs/express.md b/nodejs/express.md index 2652502a..d44bf57b 100644 --- a/nodejs/express.md +++ b/nodejs/express.md @@ -333,7 +333,7 @@ app.get("/hello/:who", function(req, res) { {% highlight javascript %} app.get('/hello/:who?',function(req,res) { - if(req.params.id) { + if(req.params.who) { res.end("Hello, " + req.params.who + "."); } else {