В каком элементе вы размещаете JavaScript?
Anonymous Poll
2%
<var>
93%
<script>
2%
<section>
3%
<code>
🔥6👍2
let a = 1;
let b = 1.5;
let a = "John" * 20; // вернет NaN
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍9🔥2
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
👍14🔥2💘1
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
❤3👍2
Подготовил для Вас небольшой перечень годных ресурсов. Пользуйтесь)
Если понравился пост, не забудь добавить🔥 🔥 🔥
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍7🔥2⚡1❤1
Понравился макет? Сохрани, чтоб не потерять!)
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥4❤1👍1
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍10
Ответ:
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
❤🔥6👍4
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥11⚡3👍2🤨2❤🔥1
Если вам понравился формат, добавьте🔥 🔥 🔥
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
❤10👍5🤝1
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍4🔥3🥴1
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥11❤1
Это означает следующее:
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍6
- npm install crawlee playwright
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
❤5🔥1
console.log('Первое сообщение');
setTimeout(() => {
console.log('Сообщение из setTimeout');
}, 0);
console.log('Второе сообщение');
setTimeout
, сообщения будут выведены в порядке:Первое сообщение
Второе сообщение
Сообщение из setTimeout
setTimeout
помещается в очередь и будет выполнен после завершения текущего кода в стеке вызовов. Event Loop позволяет выполнять асинхронные операции, сохраняя отзывчивость и эффективность веб-приложений.Если понравился пост, обязательно добавь🔥 🔥 🔥
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍16🔥3❤1
This media is not supported in your browser
VIEW IN TELEGRAM
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
👍16
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥6👍2
Приветствую!
Хочется узнать ваше мнение. Чего не хватает на канале?
Хочется узнать ваше мнение. Чего не хватает на канале?
Anonymous Poll
55%
Больше примеров кода
32%
Больше вопросов с собеседований
38%
Больше макетов
32%
Больше технологий(плагины, стеки)
48%
Больше лайфхаков
2%
Свой вариант (напиши в комменты или чат)
👍3
Если понравился такой формат, добавь
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥14👍6
CodeBase | Frontend
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥16⚡2😁1