Skip to content

Commit

Permalink
Merge pull request #778 from mate-academy/solaryasha-patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
solaryasha authored Dec 8, 2021
2 parents 1d5e4e4 + 622c45f commit 9b9a80d
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions checklist.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
1. [CODE STYLE] - Don't nest ternary operators. Write one, you can do this, we believe in you !
2. [CODE STYLE] - You don't need to name functions if you return them right away.

BAD EXAMPLE:
```
function a() {
return function b() {
console.log('Hello');
}
}
```

GOOD EXAMPLE:
```
function a() {
return function () {
console.log('Hello');
}
}
```


4. [CODE STYLE] - You should use one variable for counting function calls
5. [CODE STYLE] - DRY. When you do similar logic, try to combine conditions

0 comments on commit 9b9a80d

Please sign in to comment.