JS Error Handling

0
8Кб

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++;
}
Поиск
Категории
Больше
Социальные проблемы
Похитители велосипедов. The Bicycle Thief. (1948)
Послевоенный Рим, давно неработающий Антонио вне себя от радости - он наконец-то находит работу....
От Nikolai Pokryshkin 2023-02-01 21:36:38 0 19Кб
Kites
The Fascinating World of Kites: A Journey Through History, Types, and Uses
Kites have been a source of fascination for centuries, captivating people from all walks of life....
От Dacey Rankins 2024-11-25 14:05:33 0 6Кб
Business
What Are the Benefits of Influencer Marketing?
In today's digital world, influencer marketing has become a highly effective strategy for brands...
От Dacey Rankins 2025-02-27 17:00:24 0 7Кб
Social Issues
Miss Marx (2020)
Bright, intelligent, passionate and free, Eleanor is Karl Marx's youngest daughter. Among the...
От Leonard Pokrovski 2022-10-13 18:27:01 0 20Кб
Жизненные вопросы
Эта замечательная жизнь. It's a Wonderful Life. (1946)
Джордж Бейли, владелец кредитной компании в выдуманном американском городке Бедфорд Фоллс,...
От Nikolai Pokryshkin 2022-11-16 08:29:26 0 23Кб
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov