JS Error Handling

0
4K

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++;
}
Cerca
Categorie
Leggi tutto
Life Issues
Colombiana. (2011)
A young girl in Bogotá witnesses her parents' murder and grows up to be a stone-cold...
By Leonard Pokrovski 2023-05-22 20:12:57 0 22K
World Records
Happiest Countries in the World
Since 2002, the World Happiness Report has used statistical analysis to determine the world's...
By FWhoop Xelqua 2023-05-16 20:38:59 0 19K
История
Ран. Ran. (1985)
Япония, XVI век. Стареющий правитель Хидэтора объявляет о разделе своих владений между тремя...
By Nikolai Pokryshkin 2023-02-11 19:18:08 0 12K
Cultures and Groups
Arts and Culture
Culture and art is a rather specific direction, if we describe it in terms of employment and...
By FWhoop Xelqua 2023-01-19 16:45:09 0 14K
Ужасы
Челюсти. Jaws. (1975)
Действие картины протекает в течение пяти дней — на острове Э́мити, где расположен...
By Nikolai Pokryshkin 2023-04-10 14:35:53 0 19K
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov