final
This commit is contained in:
		
							
								
								
									
										18
									
								
								task12/2/app.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										18
									
								
								task12/2/app.js
									
									
									
									
									
										Normal 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); | ||||
		Reference in New Issue
	
	Block a user
	 kogleee
					kogleee