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++;
}
Поиск
Категории
Больше
Искусство, культура и развлечения
Пол Смит: Джентльмен и Дизайнер. Paul Smith: Gentleman and Designer. (2011)
Провокационный портрет известного английского дизайнера Пола Смита. У него 400 магазинов и...
От Nikolai Pokryshkin 2023-06-04 14:02:11 0 34Кб
Business
When Should You Hire a Lawyer or Advisor in the M&A Process?
Mergers and acquisitions (M&A) are complex, high-stakes transactions that involve financial,...
От Dacey Rankins 2025-11-27 17:24:38 0 867
Programming
Python python-twitter-v2
python-twitter-v2 is a Twitter API wrapper used for accessing the endpoints easier with aiohttp....
От Jesse Thomas 2023-04-24 20:22:42 0 12Кб
Business
What Are Key Areas to Work On in Personal Development?
Personal development is a holistic journey that touches multiple areas of life. To grow...
От Dacey Rankins 2025-09-05 15:50:34 0 5Кб
Жизненные вопросы
Токийская повесть. Tokyo Story. (1953)
Пожилая супружеская пара едет из провинции в Токио навестить детей: сына, ставшего доктором, и...
От Nikolai Pokryshkin 2023-04-13 10:36:07 0 29Кб

BigMoney.VIP Powered by Hosting Pokrov