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++;
}
Поиск
Категории
Больше
История
По соображениям совести. Hacksaw Ridge. (2016)
Медик американской армии времён Второй мировой войны Десмонд Досс, который служил во время битвы...
От Nikolai Pokryshkin 2023-04-01 12:56:30 0 40Кб
Television
FOX 5 NY Live Coverage New York USA
Webcams of New York. My Link
От Nikolai Pokryshkin 2022-09-22 11:27:43 0 25Кб
Desktop Publishing
The Concept of Desktop Publishing
The concept of computer publishing systems appeared in connection with the development of...
От FWhoop Xelqua 2023-03-29 17:55:11 0 20Кб
Personal Finance
How much does financial advice cost? Typical fee structures, how advisers are paid, and whether the cost justifies the benefit
How much does financial advice cost? Typical fee structures, how advisers are paid, and whether...
От Leonard Pokrovski 2025-11-03 22:58:58 0 3Кб
Life Issues
Grave of the Fireflies. (1988)
The story of Seita and Setsuko, two young Japanese siblings, living in the declining days of...
От Leonard Pokrovski 2022-12-06 20:01:30 0 23Кб

BigMoney.VIP Powered by Hosting Pokrov