JS Error Handling

0
8K

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++;
}
Căutare
Categorii
Citeste mai mult
Жизненные вопросы
Мэри и Макс. Mary and Max. (2009)
История отношений 8-летней девочки Мэри Динкль, которая скучает в пригороде далекого...
By Nikolai Pokryshkin 2023-04-06 12:24:30 0 25K
Alte
What Is a Woman? (2022)
Political commentator Matt Walsh explores the changing concepts of sex and gender in the digital...
By Leonard Pokrovski 2023-07-08 20:42:48 0 19K
Financial Services
The structure of costs in the long run
Key points A production technology is the specific combination of labor,...
By Mark Lorenzo 2023-07-14 18:27:19 0 11K
История
Тайна в его глазах. The Secret in Their Eyes. (2009)
1974 год. Судебный служащий вместе с двумя напарниками приступает к расследованию громкого дела,...
By Nikolai Pokryshkin 2023-03-07 13:26:10 0 18K
Financial Services
Microeconomics
Key points Demand curves can shift. Changes in factors like average income and...
By Mark Lorenzo 2023-01-27 15:38:59 0 9K

BigMoney.VIP Powered by Hosting Pokrov