JS Error Handling

0
11Кб

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++;
}
Поиск
Категории
Больше
Social Issues
Toy Story. (1995)
A cowboy doll is profoundly threatened and jealous when a new spaceman action figure supplants...
От Leonard Pokrovski 2023-01-01 20:51:01 0 22Кб
Astronomy
Exploring the Universe: An Introduction to Astronomy
Astronomy, the study of celestial bodies such as stars, planets, comets, and galaxies, as well as...
От Dacey Rankins 2024-12-11 14:57:14 0 11Кб
Business
Common Etiquette Rules in the Business Environment
Business etiquette is more than a set of formalities — it is a framework for building...
От Dacey Rankins 2025-11-25 10:52:04 0 3Кб
Другое
Pirates of the Caribbean: The Curse of the Black Pearl (2003)
Blacksmith Will Turner teams up with eccentric pirate "Captain" Jack Sparrow to save his love,...
От Leonard Pokrovski 2023-06-23 19:53:50 0 33Кб
Business and Society
Increasing staff loyalty
This article discusses the issues of how important the influence of staff loyalty on the...
От FWhoop Xelqua 2022-12-19 13:12:25 0 24Кб

BigMoney.VIP Powered by Hosting Pokrov