-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
51 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
|
||
|
||
// Global Scop => her yerden accessible olan scop | ||
|
||
// let variables="Hello My World" | ||
// console.log(variables) | ||
|
||
// function cons(){ | ||
// console.log("Function scops -->> ",variables) | ||
// } | ||
|
||
// cons() | ||
|
||
|
||
|
||
// Local Scops => Funksiyalar oz scoplarini yaradir | ||
|
||
var first_names="Domation Road" | ||
|
||
function scops(){ | ||
var last_names="MadWill" | ||
console.log("Local (Funcition) Scop -> ",first_names); | ||
console.log("Local (Funcition) Scop -> ",last_names) | ||
} | ||
|
||
scops() | ||
// console.log("Global Scop",last_names) -> funksiya daxilide decler edilen variable scop xaricinde acssesible deyil | ||
|
||
// Blok Scop => butun {} blok scopdur (funksiya -> {}) | ||
// Block Scop daxilinden let ve const ile decler edilen butun variablellar block scop xaricinden accessible deyildir | ||
|
||
|
||
if (true){ | ||
let last_names="MadWill" | ||
var lt_names="Will" | ||
console.log("Block Scop ->",first_names) | ||
console.log("Block Scop ->",last_names) | ||
console.log("Block Scop ->",lt_names) | ||
|
||
} | ||
|
||
console.log("Global Scop",lt_names) | ||
|
||
|
||
// console.log("Global Scop",last_names) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,8 @@ | |
- Function | ||
- Function | ||
- Window Object | ||
|
||
- Scops | ||
|
||
|
||
|
||
|