Skip to content

Commit c683dd7

Browse files
author
Dronca Raul
committed
Global and Local Variables
1 parent 433a109 commit c683dd7

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

JavaScript/11_Scope.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Global Variable
2+
var girl = " Kelsey ";
3+
4+
function spit() {
5+
// Local Variable
6+
// var girl = " Kelsey ";
7+
document.write(girl);
8+
};
9+
10+
spit();

0 commit comments

Comments
 (0)