Skip to content

Commit 2277f2f

Browse files
committed
images
1 parent 63dc4cd commit 2277f2f

21 files changed

+445
-82
lines changed
Binary file not shown.
Loading
Loading

1-js/03-code-quality/01-debugging-chrome/article.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Congratulations! You've set a breakpoint. Please also click on the number for li
5050

5151
It should look like this (blue is where you should click):
5252

53-
![](chrome-sources-breakpoint.png)
53+
![](chrome-sources-breakpoint.svg)
5454

5555
A *breakpoint* is a point of code where the debugger will automatically pause the JavaScript execution.
5656

@@ -93,7 +93,7 @@ In our example, `hello()` is called during the page load, so the easiest way to
9393

9494
As the breakpoint is set, the execution pauses at the 4th line:
9595

96-
![](chrome-sources-debugger-pause.png)
96+
![](chrome-sources-debugger-pause.svg)
9797

9898
Please open the informational dropdowns to the right (labeled with arrows). They allow you to examine the current code state:
9999

@@ -125,7 +125,7 @@ There are buttons for it at the top of the right pane. Let's engage them.
125125

126126
Here's what we can see after a click on it:
127127

128-
![](chrome-sources-debugger-trace-1.png)
128+
![](chrome-sources-debugger-trace-1.svg)
129129

130130
The execution has resumed, reached another breakpoint inside `say()` and paused there. Take a look at the "Call stack" at the right. It has increased by one more call. We're inside `say()` now.
131131

Binary file not shown.

1-js/03-code-quality/01-debugging-chrome/chrome-sources-breakpoint.svg

+25
Loading
Binary file not shown.
Binary file not shown.

1-js/03-code-quality/01-debugging-chrome/chrome-sources-debugger-pause.svg

+70
Loading
Binary file not shown.
Binary file not shown.

1-js/03-code-quality/01-debugging-chrome/chrome-sources-debugger-trace-1.svg

+18
Loading
Binary file not shown.

1-js/03-code-quality/02-coding-style/code-style.svg

+45-45
Loading
Loading

1-js/10-error-handling/1-try-catch/article.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ It works like this:
2828
2. If there were no errors, then `catch(err)` is ignored: the execution reaches the end of `try` and then jumps over `catch`.
2929
3. If an error occurs, then `try` execution is stopped, and the control flows to the beginning of `catch(err)`. The `err` variable (can use any name for it) contains an error object with details about what's happened.
3030

31-
![](try-catch-flow.png)
31+
![](try-catch-flow.svg)
3232

3333
So, an error inside the `try {…}` block does not kill the script: we have a chance to handle it in `catch`.
3434

Binary file not shown.

0 commit comments

Comments
 (0)