-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[1주차] 기본/도전/생각 과제 제출 #2
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
잘보고감미닷 !
const POME = array.find((pome) => pome.group === '환승연애'); | ||
const CORIGOMTANG = array.find((corigomtang) => corigomtang.group === '코리곰탕'); | ||
const serverpattzzang = array.find((name) => name.name === '권세훈'); | ||
const buddybuddy = array.find((buddy) => buddy.group === '버디버디'); | ||
const dinnerMember = array.map((member) => member.name) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오왕 find와 map을 기깔나게 쓰셧군요 !!!!
console.log(`제 코리곰탕 조는요! ${CORIGOMTANG?.name}입니다. 잘부탁드립니다...~!`); | ||
console.log(`환승연애 .. 점 그리워 ~.. : ${POME?.name}`); | ||
console.log(`서버파트장 화이팅 ㅋ ㅋ ! ${serverpattzzang?.name}`); | ||
console.log(`버디버디 조 화이팅이다 ~!~ 아자잣!@!@! ${buddybuddy?.name}`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
..과제가 이렇게 귀여우면 어쩌죠
|
||
console.log(`제 코리곰탕 조는요! ${CORIGOMTANG?.name}입니다. 잘부탁드립니다...~!`); | ||
console.log(`환승연애 .. 점 그리워 ~.. : ${POME?.name}`); | ||
console.log(`서버파트장 화이팅 ㅋ ㅋ ! ${serverpattzzang?.name}`); | ||
console.log(`버디버디 조 화이팅이다 ~!~ 아자잣!@!@! ${buddybuddy?.name}`); | ||
console.log(`${dinnerMember[0]}과 ${dinnerMember[1]}은 ${this.menu[0]}와 ${this.menu[1]}을 드세요.`); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
메뉴를 두개나 추천해주시다니 , , 마음이 넓으시네여
@@ -2,6 +2,7 @@ import Member from "./Member"; | |||
|
|||
export default interface Dinner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오왕 default는 모죠 간지나는데 일단 . .
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ES2015가 도입되면서 자바스크립트도 자체 모듈 시스템 문법이 생겨서, require와 module.exports가 import, export default로 바뀌었다고 합니다!! 저도 더 ,,, 공부해온다음에 ,, 더 자세히 얘기 ,,, 써놓을게요 !!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이번 과제 생각과제까지 하느라 수고하셨습니다 ~
@@ -2,6 +2,7 @@ import Member from "./Member"; | |||
|
|||
export default interface Dinner { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
저도 이 부분이 궁금합니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#2 (comment) 작성했는데 .. 더 작성 해볼게여~!~!...
@@ -2,6 +2,7 @@ import Member from "./Member"; | |||
|
|||
export default interface Dinner { | |||
members: Member[]; | |||
shuffle: (array: Member[]) => Member[]; | |||
menu: string[]; | |||
shuffle: (array: any[]) => any[]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
오 이렇게 해서 메뉴도 할 수 있도록 했군요..! 알아가요 ~
@@ -44,16 +45,19 @@ const dinner: Dinner = { | |||
}, | |||
organize(array) { | |||
this.shuffle(array); | |||
this.shuffle(this.menu); | |||
|
|||
const POME = array.find((pome) => pome.group === '환승연애'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
find함수까지.. 대단해요..!!!
생각과제까지... 너무 고생하셨습니다!! |
SERVER PR
🐕 과제 구현 명세
👨🦲생각과제👨🦲
호이스팅이란? / var를 지양하고 const, let 사용하라는 이유
https://vanillacreamdonut.tistory.com/306
내가 몰라서 작성한 이벤트 기반..
https://vanillacreamdonut.tistory.com/307
🐥 이런 점이 새로웠어요 / 어려웠어요
Closes #1