Jump to:

Our volunteers haven't translated this article into ไทย yet. Join us and help get the job done!
You can also read the article in English (US).

In JavaScript, a block is a collection of related statements enclosed in braces ("{}"). For example, you can put a block of statements after an if (condition) block, indicating that the interpreter should run the code inside the block if the condition is true, or skip the whole block if the condition is false.

Learn more

Learn about it

 

Document Tags and Contributors

ป้ายกำกับ: 
ผู้มีส่วนร่วมกับหน้านี้: mdnwebdocs-bot, chrisdavidmills, klez, rolfedh, Jeremie, Andrew_Pfeiffer
อัปเดตล่าสุดโดย: mdnwebdocs-bot,