Bhavesh Jadhavbhaveshjadhav.hashnode.dev·May 28, 2024Understanding JavaScript Blocks and ScopeBlock in JavaScript A block, or compound statement, in JavaScript is defined by the curly braces {}. It is used to group multiple statements together. For example: { let a = 10; console.log(a); } Why Do We Need to Group Statements? We group ...11 likes·41 reads2Articles1Week