Block scope in JavaScript

Jul 6, 20211 min read

Block scope also known as compound statement used to combine multiple javascript code into a group and it is define by {} We group multiple statements in a block so that we can use it where javascript expects a statement. For example let an statement...