You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdayStart='07:30';constdayEnd='17:45';// 회의가 근무시간 내에 이루어질 경우 true, 그렇지 않으면 falsefunctionscheduleMeeting(input,duration){// hour, min 을 나눠서 min + duration = sumconst[hour,min]=input.split(':').map(Number);constsum=min+duration;const[inputHour,inputMin]=sum>=60 ? [hour+1,sum-60] : [hour,sum];const[startHour,startMin]=dayStart.split(':').map(Number);const[endHour,endMin]=dayEnd.split(':').map(Number);return(((hour===startHour&&min>=startMin)||hour>startHour)&&((inputHour===endHour&&inputMin<=endMin)||inputHour<endHour));}
varslotMachine={reels: [Object.create(reel),Object.create(reel),Object.create(reel)],spin(){this.reels.forEach(functionspinReel(reel){reel.spin();});},// 나머지 연산자를 사용하면 원형으로 만들 수 있음?// 위임을 해서 position을 관리하기display(){// 배열화 해서 join('|')해야겠음// 슬롯 머신의 릴은 결과 해당하는 기호 하나 position과 position -1 , position +1을 함께 표시// const result = [reel.position - 1, reel.position, reel.position + 1];// return result.join('|'); 죄송한데 모르겠다요'ㅅ'리얼},};
The text was updated successfully, but these errors were encountered:
주제
책 내용 (p123~131)
The text was updated successfully, but these errors were encountered: