File tree Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Expand file tree Collapse file tree 2 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -1575,17 +1575,17 @@ function sayHi() {
1575
1575
const data = greeting ();
1576
1576
console .log (" It worked!" , data);
1577
1577
} catch (e) {
1578
- console .log (" Oh no an error! " , e);
1578
+ console .log (" Oh no an error: " , e);
1579
1579
}
1580
1580
}
1581
1581
1582
1582
sayHi ();
1583
1583
```
1584
1584
1585
- - A: ` " It worked! Hello world!" `
1586
- - B: ` " Oh no an error: undefined`
1585
+ - A: ` It worked! Hello world! `
1586
+ - B: ` Oh no an error: undefined `
1587
1587
- C: ` SyntaxError: can only throw Error objects `
1588
- - D: ` " Oh no an error: Hello world!`
1588
+ - D: ` Oh no an error: Hello world! `
1589
1589
1590
1590
<details ><summary ><b >Answer</b ></summary >
1591
1591
<p >
Original file line number Diff line number Diff line change @@ -1575,17 +1575,17 @@ function sayHi() {
1575
1575
const data = greeting ();
1576
1576
console .log (" It worked!" , data);
1577
1577
} catch (e) {
1578
- console .log (" Oh no an error! " , e);
1578
+ console .log (" Oh no an error: " , e);
1579
1579
}
1580
1580
}
1581
1581
1582
1582
sayHi ();
1583
1583
```
1584
1584
1585
- - A: ` " It worked! Hello world!" `
1586
- - B: ` " Oh no an error: undefined`
1585
+ - A: ` It worked! Hello world! `
1586
+ - B: ` Oh no an error: undefined `
1587
1587
- C: ` SyntaxError: can only throw Error objects `
1588
- - D: ` " Oh no an error: Hello world!`
1588
+ - D: ` Oh no an error: Hello world! `
1589
1589
1590
1590
<details ><summary ><b >Answer</b ></summary >
1591
1591
<p >
You can’t perform that action at this time.
0 commit comments