mirror of
https://github.com/airbnb/javascript.git
synced 2026-01-13 21:48:05 -05:00
Oops, keep to 13.1!
This commit is contained in:
@@ -616,13 +616,13 @@
|
||||
|
||||
// bad
|
||||
[1, 2, 3].map(number => {
|
||||
let nextNumber = number + 1;
|
||||
const nextNumber = number + 1;
|
||||
`A string containing the ${nextNumber}.`;
|
||||
});
|
||||
|
||||
// good
|
||||
[1, 2, 3].map(number => {
|
||||
let nextNumber = number + 1;
|
||||
const nextNumber = number + 1;
|
||||
return `A string containing the ${nextNumber}.`;
|
||||
});
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user