Skip to content

Commit 6454839

Browse files
committed
[guide] Use var in reserved word examples, since they refer to untranspiled code.
1 parent 52a2da4 commit 6454839

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ Other Style Guides
158158

159159
```javascript
160160
// bad
161-
const superman = {
161+
var superman = {
162162
default: { clark: 'kent' },
163163
private: true,
164164
};
165165
166166
// good
167-
const superman = {
167+
var superman = {
168168
defaults: { clark: 'kent' },
169169
hidden: true,
170170
};
@@ -175,17 +175,17 @@ Other Style Guides
175175

176176
```javascript
177177
// bad
178-
const superman = {
178+
var superman = {
179179
class: 'alien',
180180
};
181181
182182
// bad
183-
const superman = {
183+
var superman = {
184184
klass: 'alien',
185185
};
186186
187187
// good
188-
const superman = {
188+
var superman = {
189189
type: 'alien',
190190
};
191191
```

0 commit comments

Comments
 (0)