JS Error Handling

0
6كيلو بايت

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++;
}
البحث
الأقسام
إقرأ المزيد
Социальные проблемы
Напоказ. Appearances. (2020)
Эва, героиня фильма «Напоказ», молодая счастливая женщина, мать очаровательного...
بواسطة Nikolai Pokryshkin منذ ٢ سنوات 0 20كيلو بايت
التعليم
Computer Education in the Modern World
In today’s digital age, education in computers has become essential for navigating the...
بواسطة Dacey Rankins منذ ٥ أشهر 0 7كيلو بايت
Business
What is Crisis Management?
Crisis management is a critical skill and strategy for businesses, organizations, and individuals...
بواسطة Dacey Rankins منذ ٢ أشهر 0 3كيلو بايت
Mental Health
Dyslexia: Causes
Researchers have been trying to find the neurobiological basis of dyslexia since the condition...
بواسطة Kelsey Rodriguez منذ ٢ سنوات 0 6كيلو بايت
Mental Health
Psychosis: Methamphetamine
Methamphetamine induces a psychosis in 26–46 percent of heavy users. Some of these people...
بواسطة Kelsey Rodriguez منذ ٢ سنوات 0 6كيلو بايت
image/svg+xml


BigMoney.VIP Powered by Hosting Pokrov

Top sites Pokrov