This commit is contained in:
kogleee
2023-11-08 13:17:48 +03:00
commit 3dbd9654c2
136 changed files with 14736 additions and 0 deletions

18
task12/2/app.js Normal file
View File

@@ -0,0 +1,18 @@
const http = require('http');
http.createServer(function (request, response) {
response.setHeader('Content-Type', 'text/html');
response.write('<!DOCTYPE html>');
response.write('<html>');
response.write('<head>');
response.write('<title>Hello Node.js</title>');
response.write('<meta charset="utf-8" />');
response.write('</head>');
response.write('<body>');
response.write('<h2>Привет миг</h2>');
response.write('<h2>Привет миг</h2>');
response.write('<h2>Привет миг</h2>');
response.write('</body>');
response.write('</html>');
response.end();
}).listen(3000);