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++;
}
Поиск
Категории
Больше
Business
What is the PPC model and how is it used in advertising?
To find more interested users, companies run ads. Advertisers often use the PPC model to quickly...
От Dacey Rankins 2024-09-18 16:47:24 0 15Кб
Mental Health
Dyslexia: Pathophysiology
For most people who are right-hand dominant, the left hemisphere of their brain is more...
От Kelsey Rodriguez 2023-06-26 17:18:55 0 11Кб
Parties
Ideas for New Years Party
December is not only the month of summing up the results of the whole year, but also the time of...
От FWhoop Xelqua 2022-12-08 15:57:18 0 26Кб
История
На несколько долларов больше. For a Few Dollars More. (1965)
Заработать несколько лишних долларов честным путем на диком Западе не проблема, если у тебя есть...
От Nikolai Pokryshkin 2023-02-02 11:33:08 0 25Кб
Жизненные вопросы
Комната. Room. (2015)
Джой похитил маньяк, когда она была подростком. С тех пор она живет в крохотной комнатке вместе с...
От Nikolai Pokryshkin 2023-04-11 10:50:28 0 37Кб

BigMoney.VIP Powered by Hosting Pokrov