JS Error Handling

0
8KB

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++;
}
Rechercher
Catégories
Lire la suite
Социальные проблемы
Жизнь других. The Lives of Others. (2006)
Сто тысяч сотрудников, двести тысяч информаторов. Вместе они — щит и меч партии, знаменитое...
Par Nikolai Pokryshkin 2022-12-15 11:29:22 0 24KB
Life Issues
Shutter Island. (2010)
In 1954, a U.S. Marshal investigates the disappearance of a murderer who escaped from a hospital...
Par Leonard Pokrovski 2023-02-16 13:03:05 1 19KB
Financial Services
How rising or falling interest rates might affect you
When the Federal Reserve raises or lowers its target interest rate, the change affects...
Par Mark Lorenzo 2023-05-22 20:01:55 0 14KB
Television
The Evolution of Television: From the Box to the Digital Revolution
Television has been one of the most influential inventions of the 20th century, shaping...
Par Dacey Rankins 2024-11-14 16:08:01 0 9KB
Programming
Python Motor vs Pymongo
Motor provides a single client class, MotorClient. Unlike PyMongo’s MongoClient,...
Par Jesse Thomas 2023-07-12 21:04:17 0 10KB

BigMoney.VIP Powered by Hosting Pokrov