JS Error Handling

0
6χλμ.

JavaScript supports a compact set of statements, specifically control flow statements, that you can use to incorporate a great deal of interactivity in your application. This chapter provides an overview of these statements.

The JavaScript reference contains exhaustive details about the statements in this chapter. The semicolon (;) character is used to separate statements in JavaScript code.

Any JavaScript expression is also a statement. See Expressions and operators for complete information about expressions.

Block statement

The most basic statement is a block statement, which is used to group statements. The block is delimited by a pair of curly brackets:

{
  statement1;
  statement2;
  // …
  statementN;
}

Example

Block statements are commonly used with control flow statements (ifforwhile).

while (x < 10) {
  x++;
}
Αναζήτηση
Κατηγορίες
Διαβάζω περισσότερα
Financial Services
The structure of costs in the short run
Key points Looked at from a short-run perspective, a firm’s total costs can...
από Mark Lorenzo 2023-04-20 20:21:49 0 6χλμ.
Научная фантастика и фэнтези
Звёздные войны. Эпизод VI: Возвращение Джедая. Star Wars: Episode VI - Return of the Jedi. (1983)
В шестом эпизоде «Звездных войн» Дарт Вейдер создает вторую «Звезду...
από Nikolai Pokryshkin 2023-01-08 22:53:53 0 28χλμ.
Научная фантастика и фэнтези
Терминатор 2: Судный день. Terminator 2: Judgment Day. (1991)
Прошло более десяти лет с тех пор, как киборг из 2029 года пытался уничтожить Сару Коннор —...
από Nikolai Pokryshkin 2022-11-22 16:19:09 0 16χλμ.
Жизненные вопросы
Джокер. Joker. (2019)
Готэм, начало 1980-х годов. Комик Артур Флек живет с больной матерью, которая с детства учит его...
από Nikolai Pokryshkin 2022-12-30 10:49:32 0 21χλμ.
Социальные проблемы
Пианист. The Pianist. (2002)
Фильм снят по автобиографии Владислава Шпильмана, одного из лучших пианистов Польши 30-х годов...
από Nikolai Pokryshkin 2022-11-25 18:25:22 0 21χλμ.
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov