SHOW:
|
|
- or go back to the newest paste.
1 | var foo; | |
2 | ||
3 | (function(){ | |
4 | var s="local scope"; | |
5 | ||
6 | function printS(){ | |
7 | document.getElementById("demo").innerHTML=s; | |
8 | } | |
9 | ||
10 | foo=printS; | |
11 | ||
12 | }()); | |
13 | ||
14 | - | document.getElementById("demo").innerHTML="nothing"; |
14 | + | document.getElementById("demo").innerHTML="nothing"; |
15 | foo(); |