trevordixon
Joined 13 years ago
Karma
205
Submissions
95
Member since
Apr 12
Kismet: 4faa86
View on Hacker NewsJoined 13 years ago
async function test() {
const promise = Math.random() < 0.5 ?
Promise.resolve('wow') :
Promise.reject('oops');
try {
await promise;
} catch (e) {
console.log('caught');
return;
}
const result = await promise;
console.log('result', result);
}
test();There are only a handful of English words you have to memorize. Music students have to memorize a handful of Italian words to follow written music. It hasn't been a problem.