🧱Block Scope in JavaScript
Block in JavaScript A block in JavaScript is defined by { } (curly braces). { var num = 10; console.log(num); } This is a block. It combines multiple JavaScript statements into a group. Block is also know as Compound Statement A block statem...
Oct 11, 20224 min read16
