docs: use let/const instead of var

This commit is contained in:
waiting
2017-09-24 16:58:37 +08:00
parent 37b125e7fa
commit 5fbafe9efc
+1 -1
View File
@@ -47,7 +47,7 @@ function Point(x = 0, y = 0) {
this.y = y;
}
var p = new Point();
const p = new Point();
p // { x: 0, y: 0 }
```