Telegram Group & Telegram Channel
👩‍💻 Что такое метод forEach() в JavaScript и как он используется?

forEach() — это метод массивов в JavaScript, который выполняет заданную функцию для каждого элемента массива.
Он не возвращает новый массив и чаще используется для побочных эффектов (логов, вызовов функций и т.д.).

➡️ Пример:

const users = ["Анна", "Борис", "Вера"];

users.forEach((user, index) => {
console.log(`${index + 1}. Привет, ${user}!`);
});

1. Привет, Анна!
2. Привет, Борис!
3. Привет, Вера!


🗣️ В этом примере:

forEach() перебирает массив
• Удобен для вывода в консоль, вызова функций, работы с DOM
• Не изменяет оригинальный массив и не возвращает новый

CodeBase | Frontend | #JS
Please open Telegram to view this post
VIEW IN TELEGRAM



tg-me.com/codebase_frontend/687
Create:
Last Update:

👩‍💻 Что такое метод forEach() в JavaScript и как он используется?

forEach() — это метод массивов в JavaScript, который выполняет заданную функцию для каждого элемента массива.
Он не возвращает новый массив и чаще используется для побочных эффектов (логов, вызовов функций и т.д.).

➡️ Пример:

const users = ["Анна", "Борис", "Вера"];

users.forEach((user, index) => {
console.log(`${index + 1}. Привет, ${user}!`);
});

1. Привет, Анна!
2. Привет, Борис!
3. Привет, Вера!


🗣️ В этом примере:

forEach() перебирает массив
• Удобен для вывода в консоль, вызова функций, работы с DOM
• Не изменяет оригинальный массив и не возвращает новый

CodeBase | Frontend | #JS

BY CodeBase | Frontend


Warning: Undefined variable $i in /var/www/tg-me/post.php on line 283

Share with your friend now:
tg-me.com/codebase_frontend/687

View MORE
Open in Telegram


telegram Telegram | DID YOU KNOW?

Date: |

How Does Bitcoin Work?

Bitcoin is built on a distributed digital record called a blockchain. As the name implies, blockchain is a linked body of data, made up of units called blocks that contain information about each and every transaction, including date and time, total value, buyer and seller, and a unique identifying code for each exchange. Entries are strung together in chronological order, creating a digital chain of blocks. “Once a block is added to the blockchain, it becomes accessible to anyone who wishes to view it, acting as a public ledger of cryptocurrency transactions,” says Stacey Harris, consultant for Pelicoin, a network of cryptocurrency ATMs. Blockchain is decentralized, which means it’s not controlled by any one organization. “It’s like a Google Doc that anyone can work on,” says Buchi Okoro, CEO and co-founder of African cryptocurrency exchange Quidax. “Nobody owns it, but anyone who has a link can contribute to it. And as different people update it, your copy also gets updated.”

Telegram hopes to raise $1bn with a convertible bond private placement

The super secure UAE-based Telegram messenger service, developed by Russian-born software icon Pavel Durov, is looking to raise $1bn through a bond placement to a limited number of investors from Russia, Europe, Asia and the Middle East, the Kommersant daily reported citing unnamed sources on February 18, 2021.The issue reportedly comprises exchange bonds that could be converted into equity in the messaging service that is currently 100% owned by Durov and his brother Nikolai.Kommersant reports that the price of the conversion would be at a 10% discount to a potential IPO should it happen within five years.The minimum bond placement is said to be set at $50mn, but could be lowered to $10mn. Five-year bonds could carry an annual coupon of 7-8%.

telegram from nl


Telegram CodeBase | Frontend
FROM USA