Данный макет прокачает ваши навыки до небес!
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
В каком элементе вы размещаете JavaScript?
Anonymous Poll
2%
<var>
93%
<script>
2%
<section>
3%
<code>
let a = 1;
let b = 1.5;
let a = "John" * 20; // вернет NaN
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
javascript
const http = require("http");
http.createServer(function(request, response) {
response.end("Hello Node.js!");
}).listen(3000, "127.0.0.1", function() {
console.log("Сервер начал прослушивание запросов на порту 3000");
});
require()
.createServer()
создали новый сервер для обработки входящих запросов. В этом методе мы передали функцию с двумя параметрами: request
с информацией о запросе и response
для отправки ответа.http.createServer()
лишь создает сервер. Чтобы начать прослушивание подключений, мы использовали метод listen()
, указав номер порта и функцию обратного вызова для отображения сообщения о начале прослушивания.node app.js
в директории с проектом. CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Ответ:
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
Это означает следующее:
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
- npm install crawlee playwright
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM