usuiforhe пре 2 година
родитељ
комит
18b9a8923b
1 измењених фајлова са 2 додато и 1 уклоњено
  1. 2 1
      TS/JaveScript.md

+ 2 - 1
TS/JaveScript.md

@@ -188,7 +188,7 @@ function foo(){
     console.log(message);
 }
 function bar(){
-    message = "Hello Bar";
+    var message = "Hello Bar";
     foo();
 }
 
@@ -213,6 +213,7 @@ bar();      // 输出 Hello Global
 function foo(){
     m = 100;
 }
+foo();
 console.log(m);
 
 function foo1(){