Skip to content

Commit 5fb2d10

Browse files
Merge pull request #27 from nn6v6nn/patch-1
fix the property name
2 parents 46bb4d0 + 34871cc commit 5fb2d10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ebook/10_object_literal_upgrades.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ const name = "myname";
119119
const person = {
120120
[name]: "Alberto",
121121
};
122-
console.log(person.name);
122+
console.log(person.myname);
123123
// Alberto
124124
```

0 commit comments

Comments
 (0)