다른 블로그의 유용한 글

자바스크립트에서의 나쁜 습관

Neda 2023. 1. 8. 20:47

제목: Say bye bye to bad javascript practices

 

출처:

 

Say bye bye to bad javascript practices

When we take our first steps into the wonderful world of programming, we get to see for ourselves what it does for millions of people. It’s…

blog.gogrow.dev

 

요약:

1. Using var instead of let and const

2. Using comments to explain the code

3. Using == instead of ===

4. Forgetting to use optional chaining

5. Not using magic strings and magic numbers

6. Improperly handling API call errors

7. Using an object as a single parameter

8. Forgetting the power of abbreviations