1. Use Console.table()
to Display Arrays and Objects in the Console
1. 콘솔 창에서 배열과 객체를 볼 때, console.table()
사용하기
2. Use Template Interpolation to Render Strings Instead of the Assignment Operator
2. 문자를 렌더링할 때, 할당 연산자보다는 템플릿 리터럴을 사용하기
3. Convert Strings to Numbers with Unary Plus and Number Constructor
3. 문자를 숫자로 바꿀 때 단항 연산자 + 와 Number 생성자 사용하기
4. You Don't Need to Declare Every Variable with a keyword
4. 모든 변수를 키워드로 선언할 필요는 없다
5. Use console.group()
with Multiple console.log()
to Group Related Items to the Console
5. console.group()
을 사용해서 다양한 console.log()
를 그룹화하기
6. Style your Console Output with the %c
Specifier
7. How Math.floor(Math.random() * n1 + n2 )
Generates a Random Number Between n1
and n2
8. Methods of the Math Object
9. Capitalize the First Letter of Any Word
10. Destructure Arrays with Default Values to Avoid Getting undefined
11. Use the Spread Operator to Copy and Merge Arrays
12. Use Arrow Syntax to Write Shorter and More Elegant Functions
13. Use Destructuring to Extract Properties from Objects
14. Use the startsWith()
and endsWith()
String Methods to Get the Start and End of a String
15. Use the trim()
, trimStart()
, and trimEnd()
to Handle White Spaces
'What I Read' 카테고리의 다른 글
React Server Components - How and Why You Should Use Them in Your Code(1) (0) | 2023.11.16 |
---|---|
Web Animation Techniques - CSS vs JavaScript (0) | 2023.11.11 |
Airbnb JavaScript 스타일 가이드 - 3. 객체 Objects (0) | 2023.11.03 |
[ Medium ] I Bet You Don't Use These JavaScript Tricks and Practices (0) | 2023.10.31 |
[ 번역 ] this in JavaScript and TypeScript (0) | 2023.10.31 |