JS Error Handling

0
11KB

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++;
}
Pesquisar
Categorias
Leia mais
Social Issues
Bowling for Columbine (2002)
Filmmaker Michael Moore explores the roots of America's predilection for gun violence. My Link
Por Leonard Pokrovski 2023-07-20 18:35:09 0 27KB
Financial Services
Efficiency in perfectly competitive markets
Key points Long-run equilibrium in perfectly competitive markets meets two...
Por Mark Lorenzo 2023-04-27 18:34:34 0 13KB
Mental Health
Autism Spectrum: Repetitive Behaviours
ASD includes a wide variety of characteristics. Some of these include behavioral characteristics...
Por Kelsey Rodriguez 2023-02-16 15:28:10 0 11KB
Television
8XM Live TV. Pakistan.
8XM is a Pakistani music television channel, on air since July 2011. 8XM airs all types of music,...
Por Nikolai Pokryshkin 2022-11-26 19:01:37 0 43KB
Programming
Python Module
If you quit from the Python interpreter and enter it again, the definitions you have made...
Por Jesse Thomas 2023-04-05 00:07:17 0 12KB

BigMoney.VIP Powered by Hosting Pokrov