Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
oopsを表示させずにhelloのみを表示させる方法を答えよ
function* hello() {
try {
while(true) {
yield 9
yield 3
yield 2
}
} catch(e) {
console.log('oops')
} finally {
console.log('hello')
}
}
const h = hello()
// ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment