mirror of
https://github.com/ruanyf/es6tutorial.git
synced 2024-04-21 12:32:22 +00:00
docs(string): edit string
This commit is contained in:
+2
-2
@@ -708,14 +708,14 @@ var es6 = {
|
||||
standard: "ECMA-262"
|
||||
};
|
||||
|
||||
for (e in es6) {
|
||||
for (let e in es6) {
|
||||
console.log(e);
|
||||
}
|
||||
// edition
|
||||
// committee
|
||||
// standard
|
||||
|
||||
for (e of es6) {
|
||||
for (let e of es6) {
|
||||
console.log(e);
|
||||
}
|
||||
// TypeError: es6 is not iterable
|
||||
|
||||
Reference in New Issue
Block a user