回答編集履歴
1
ソース例修正
test
CHANGED
@@ -8,7 +8,7 @@
|
|
8
8
|
|
9
9
|
eval("var " + a + "= 'bbb'");
|
10
10
|
|
11
|
-
console.log(
|
11
|
+
console.log(aaa); //bbb
|
12
12
|
|
13
13
|
```
|
14
14
|
|
@@ -30,7 +30,9 @@
|
|
30
30
|
|
31
31
|
|
32
32
|
|
33
|
-
console.log(b[a]); //bbb
|
33
|
+
console.log(b[a]); //bbb
|
34
|
+
|
35
|
+
console.log(b.aaa); //bbb
|
34
36
|
|
35
37
|
```
|
36
38
|
|
@@ -54,7 +56,9 @@
|
|
54
56
|
|
55
57
|
};
|
56
58
|
|
57
|
-
console.log(b[a]); //bbb
|
59
|
+
console.log(b[a]); //bbb
|
60
|
+
|
61
|
+
console.log(b.aaa); //bbb
|
58
62
|
|
59
63
|
```
|
60
64
|
|