Skip to content

Commit b4e8efb

Browse files
committed
fix this example
1 parent 9e90796 commit b4e8efb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

JS/JS-ch.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ function instanceof(left, right) {
301301
function foo() {
302302
console.log(this.a)
303303
}
304-
var a = 2
304+
var a = 1
305305
foo()
306306

307307
var obj = {

JS/JS-en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ As for the latter, it first executes `new Foo()` to create an instance, then fin
251251
function foo() {
252252
console.log(this.a);
253253
}
254-
var a = 2;
254+
var a = 1;
255255
foo();
256256

257257
var obj = {

0 commit comments

Comments
 (0)