what is a block in javascript
Description. The block statement is often called compound statement in other
languages. It allows you to use multiple statements where JavaScript expects
only one statement. Combining statements into blocks is a common practice in
JavaScript.