Open junly21 opened 11 months ago
function* genFunc(){ const x = yield 1; const y = yield (x+10) yield x+y } const gen2 = genFunc()
위 코드에 대하여 다음과 같이 실행할 경우
gen2.next(10) gen2.next(10) gen2.next() gen2.next()
각각의 실행 코드에 대해서 반환되는 객체를 작성해주세요
위 코드에 대하여 다음과 같이 실행할 경우
각각의 실행 코드에 대해서 반환되는 객체를 작성해주세요