Merge pull request #225 from mkrawczuk/node_example_fix

Move success message to `app`'s `listen` callback.
This commit is contained in:
Jeff Geerling
2022-04-14 21:56:42 -05:00
committed by GitHub
2 changed files with 2 additions and 4 deletions
+1 -2
View File
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
});
// Listen on port 80 (like a true web server).
app.listen(80);
console.log('Express server started successfully.');
app.listen(80, () => console.log('Express server started successfully.'));
+1 -2
View File
@@ -11,5 +11,4 @@ app.get('/', function(req, res){
});
// Listen on port 80 (like a true web server).
app.listen(80);
console.log('Express server started successfully.');
app.listen(80, () => console.log('Express server started successfully.'));