From c4a49365e46f0475ff56728161bde744e0c29da6 Mon Sep 17 00:00:00 2001 From: shubhtech26 Date: Sun, 28 Apr 2024 11:29:16 -0400 Subject: [PATCH] update-app to v2 --- express-helloworld/app.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/express-helloworld/app.js b/express-helloworld/app.js index 782ccf037..2073f7018 100644 --- a/express-helloworld/app.js +++ b/express-helloworld/app.js @@ -2,7 +2,11 @@ var express = require('express'); app = express(); app.get('/', function (req, res) { - res.send('Hello World!\n'); + response = 'This is version 2 of the app.' + '\n'; + + //send the response to the client + res.send(response); + }); app.listen(8080, function () {