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++;
}
Поиск
Категории
Больше
История
Касабланка. Casablanca. (1942)
Оставивший родину американец Рик Блэйн, владелец игорного клуба в Касабланке, встречается с...
От Nikolai Pokryshkin 2022-12-04 12:29:50 0 27Кб
Social Issues
Inside Job. (2010)
'Inside Job' provides a comprehensive analysis of the global financial crisis of 2008, which at a...
От Leonard Pokrovski 2023-06-03 18:38:51 0 29Кб
Business
Are Recruitment Agencies Free?
Yes, reputable recruitment agencies are free for job seekers.If you're currently job hunting, you...
От Dacey Rankins 2025-06-23 14:41:07 0 8Кб
Satire
Satirical News
Satirical (humorous, humorous, parody) news is completely or partially invented information about...
От FWhoop Xelqua 2023-02-28 19:30:00 0 18Кб
Business
What is the Difference Between Business Strategy and Business Plan?
When starting or managing a business, it's crucial to understand the distinction between a...
От Dacey Rankins 2024-12-24 13:12:02 0 10Кб

BigMoney.VIP Powered by Hosting Pokrov