feat: update

pull/7/head
xuwu 2021-03-09 07:24:08 +08:00
parent 0684e8ab5e
commit ab9028492c
1 changed files with 17 additions and 0 deletions

View File

@ -15,6 +15,23 @@
## 今日原题
第二题:[以下代码输出什么,为什么?](https://github.com/KieSun/fucking-frontend/issues/2),这道题目是第一题的进阶版本,更有趣了。
```js
try {
let a = 0
;(async function() {
a += 1
console.log('inner', a)
throw new Error('123')
// a()
})()
console.log('outer', a)
} catch(e) {
console.warn('Error', e)
}
```
第一题:[以下代码输出什么,为什么?](https://github.com/KieSun/fucking-frontend/issues/1)。
```js