JS Error Handling

0
4Кб

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++;
}
Поиск
Категории
Больше
Научная фантастика и фэнтези
Назад в будущее. Back to the Future. (1985)
Подросток Марти с помощью машины времени, сооружённой его другом-профессором доком Брауном,...
От Nikolai Pokryshkin 2022-11-23 16:35:23 0 17Кб
Software
Software: concept and main types
 What's it all about? Software is a set of programs for information processing. One of...
От FWhoop Xelqua 2023-04-16 17:08:57 0 12Кб
Almanacs
Almanac
Almanac (fromArabic. ألمناخ—astronomicalcalendar) is a typeof serialpublication, an...
От FWhoop Xelqua 2022-12-04 17:57:45 0 13Кб
Farms
The Importance of Farms: Cultivating Food, Community, and Sustainability
Farms are the backbone of our food systems, playing a crucial role in providing the sustenance...
От Dacey Rankins 2024-10-21 17:02:54 0 5Кб
Социальные проблемы
Афера. The Sting. (1973)
В 1930-е годы двое отпетых мошенников пытаются отомстить главарю мафии за смерть их общего друга...
От Nikolai Pokryshkin 2023-01-24 08:52:46 0 20Кб
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov