JS Error Handling

0
11KB

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++;
}
Suche
Kategorien
Mehr lesen
Жизненные вопросы
Начало. Inception. (2010)
Кобб – талантливый вор, лучший из лучших в опасном искусстве извлечения: он крадет ценные...
Von Nikolai Pokryshkin 2022-11-11 18:10:34 0 31KB
Gay, Lesbian, and Bisexual
Homosexuality in Europe
MEPs by a majority vote on March 11 adopted a declaration declaring the European Union an "LGBTI...
Von FWhoop Xelqua 2022-12-09 17:18:30 0 25KB
Tennis
Tennis: The Timeless Sport of Skill, Strategy, and Endurance
Tennis: The Timeless Sport of Skill, Strategy, and Endurance Tennis, a sport beloved for its...
Von Leonard Pokrovski 2024-07-11 13:43:40 0 26KB
Алгоритмы
Как работают алгоритмы Tik Tok
Продвижение бизнеса в Tik Tok это уже необходимость.Tik Tok - это социальная сеть. Многие не...
Von Dmitry Novikov 2023-01-30 00:50:30 0 33KB
Financial Services
How perfectly competitive firms make output decisions
Key points As a perfectly competitive firm produces a greater quantity of output,...
Von Mark Lorenzo 2023-07-19 22:25:39 0 15KB

BigMoney.VIP Powered by Hosting Pokrov