You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
218 B
JavaScript
22 lines
218 B
JavaScript
3 years ago
|
{
|
||
|
// Block Scope
|
||
|
{
|
||
|
// Nested Block Scope
|
||
|
}
|
||
|
}
|
||
|
|
||
|
if (true) {
|
||
|
// Block Scope
|
||
|
}
|
||
|
|
||
|
for (var i = 1; i <= 10; i++) {
|
||
|
// Block Scope
|
||
|
}
|
||
|
|
||
|
function sum(a, b) {
|
||
|
// Function Scope
|
||
|
var result = a + b;
|
||
|
}
|
||
|
|
||
|
sum(4 + 3);
|