Recent Posts
Recent Comments
Archives
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- React
- nextjs
- 코딩테스트
- 코드카타
- git
- 셋팅
- array정적메서드
- 티스토리챌린지
- 코테
- 최적화
- 스파르타코딩클럽
- 내일배움캠프
- error
- vercel
- TailwindCSS
- js
- 오블완
- 모던 자바스크립트
- auth
- 프로그래머스
- 자주 까먹는
- useRouter
- 초기셋팅
- supabase
- 프로젝트 셋팅
- domain
- CORS
- deep dive
- 모던자바스크립트
- Next
- Today
- Total
목록destructuring (1)
도록
[Javascript] 자주 까먹는 Destucturing
객체 Destructuring 1) 다중 속성 추출const coffe = { name : '커피', price : 4000};const { name, price } = coffe;console.log(name); // 커피console.log(price); // 4000 2)함수 매개변수function menu({name, age}) { console.log(`오늘의 커피는 ${name}이고 가격은 ${age}원입니다.`)}const todayCoffe = { name : '카페라떼', price : 5000};menu(todayCoffe); 배열 Destructuringconst colors = ['red', 'orange', 'yellow', 'green'];con..
Today I Learned
2024. 5. 10. 11:16