Skip to content

Instantly share code, notes, and snippets.

@hakobe
Last active October 19, 2018 13:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save hakobe/1ca47a198754c93568b07b8317c9ce41 to your computer and use it in GitHub Desktop.
Save hakobe/1ca47a198754c93568b07b8317c9ce41 to your computer and use it in GitHub Desktop.
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