JS Error Handling

0
7Кб

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
North by Northwest. (1959)
A New York City advertising executive goes on the run after being mistaken for a government agent...
От Leonard Pokrovski 2023-01-17 19:04:53 0 17Кб
Business
How Do I Transition from a Team Member to a Managerial Role?
Stepping into a managerial role after being part of a team is an exciting but challenging...
От Dacey Rankins 2025-05-13 16:10:07 0 1Кб
Социальные проблемы
Удалить историю. Delete History. (2020)
Жизнь троих обитателей городка подчинена новейшим технологиям и опутана социальными сетями....
От Nikolai Pokryshkin 2022-10-15 21:52:58 1 20Кб
Business
What are the key components of a crisis management plan?
In today’s fast-paced and often unpredictable world, businesses and organizations need to...
От Dacey Rankins 2025-01-17 16:46:39 0 5Кб
Искусство, культура и развлечения
Выпускной. The Prom. (2020)
В консервативном городке Эджуотер штата Индиана местной школьнице-лесбиянке не позволяют привести...
От Nikolai Pokryshkin 2022-09-23 22:54:34 0 24Кб
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov