ariketa-01/index.js

13 lines
266 B
JavaScript
Raw Normal View History

2021-03-04 16:36:29 +01:00
const express = require('express');
const app = express();
app.set('port', 8080);
app.get('/', (req, res) => {
res.status(200).send('Hello World!!');
});
app.listen(app.get('port'), () => {
console.log('Zerbitzaria martxan ' + app.get('port') + ' atakan');
});