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 |
Tags
- 오블완
- vscode
- vercel
- CORS
- 코딩테스트
- 구글 로그인
- 스파르타코딩클럽
- React
- 소셜 로그인
- useRouter
- 셋팅
- domain
- error
- 자주 까먹는
- 프로젝트 셋팅
- 최적화
- 코드카타
- 내일배움캠프
- js
- git
- deep dive
- Next
- nextjs
- 모던자바스크립트
- 모던 자바스크립트
- 초기셋팅
- 프로그래머스
- 티스토리챌린지
- 코테
- array정적메서드
- 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