Spaces:
Sleeping
Sleeping
Update index.js
Browse files
index.js
CHANGED
|
@@ -3,11 +3,10 @@ import express from 'express';
|
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
-
console.log(
|
| 7 |
-
console.log(express)
|
| 8 |
|
| 9 |
app.get('/', (req, res) => {
|
| 10 |
-
res.send(`Running Node.js ${process.version
|
| 11 |
});
|
| 12 |
|
| 13 |
app.listen(port, () => {
|
|
|
|
| 3 |
const app = express();
|
| 4 |
const port = 7860;
|
| 5 |
|
| 6 |
+
console.log(require('express/package.json').version)
|
|
|
|
| 7 |
|
| 8 |
app.get('/', (req, res) => {
|
| 9 |
+
res.send(`Running Node.js ${process.version} with Express.js`);
|
| 10 |
});
|
| 11 |
|
| 12 |
app.listen(port, () => {
|