This commit is contained in:
MishaBagger
2023-10-25 09:15:21 +03:00
commit b6c10cc93f
9828 changed files with 1446743 additions and 0 deletions

16
16/app.js Normal file
View File

@@ -0,0 +1,16 @@
const http = require('http');
const fs = require('fs');
http.createServer(function (request, response) {
fs.readFile('index.html', 'utf8', function (
error,
data
) {
let message = 'Изучаем Node.js';
let header = 'Главная страница';
data = data
.replace('{header}', header)
.replace('{message}', message);
response.end(data);
});
}).listen(3000);