JS Error Handling

0
10Кб

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++;
}
Поиск
Категории
Больше
Sport
Ford v Ferrari. (2019)
American car designer Carroll Shelby and driver Ken Miles battle corporate interference and the...
От Leonard Pokrovski 2023-04-14 17:05:21 0 25Кб
Жизненные вопросы
Помни. Memento. (2000)
Леонард Шелби изысканно и дорого одет, ездит на новеньком «Ягуаре», но проживает в...
От Nikolai Pokryshkin 2022-12-12 12:27:43 0 23Кб
Visual Arts
Visual Arts
The classification of fine arts is a branch of art criticism, which is called the morphology of...
От FWhoop Xelqua 2023-02-27 16:20:05 0 17Кб
Business
How Do I Handle Recurring Meetings That Feel Unproductive?
Recurring meetings are a staple of workplace communication, but when they become unproductive,...
От Dacey Rankins 2025-06-02 16:09:49 0 6Кб
Телевидение
Телеканал UniverTV прямая трансляция.
Первый и, на сегодня, единственный в России круглосуточный университетский студенческий телеканал...
От Nikolai Pokryshkin 2022-11-09 11:01:43 0 26Кб

BigMoney.VIP Powered by Hosting Pokrov