Skip to content

Commit 2277f2f

Browse files
committedJul 27, 2019
images
1 parent 63dc4cd commit 2277f2f

21 files changed

+445
-82
lines changed
 
Binary file not shown.
Lines changed: 48 additions & 0 deletions
Loading
Lines changed: 101 additions & 0 deletions
Loading

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

Lines changed: 3 additions & 3 deletions
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

Lines changed: 25 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.

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

Lines changed: 70 additions & 0 deletions
Loading
Binary file not shown.
Binary file not shown.

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

Lines changed: 18 additions & 0 deletions
Loading
Binary file not shown.

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

Lines changed: 45 additions & 45 deletions
Loading
-14.4 KB
Loading

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

Lines changed: 1 addition & 1 deletion
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.

‎1-js/10-error-handling/1-try-catch/try-catch-flow.svg

Lines changed: 36 additions & 33 deletions
Loading
Binary file not shown.

‎figures.sketch

-12 Bytes
Binary file not shown.

‎images.yml

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
ifelse_task2.svg:
2+
Begin: ''
3+
You don't know?: ''
4+
“ECMAScript”!: ''
5+
Right!: ''
6+
What's the: ''
7+
“official” name of: ''
8+
JavaScript?: ''
9+
Other: ''
10+
ECMAScript: ''
11+
12+
ifelse_task.svg:
13+
Begin: ''
14+
Canceled: ''
15+
Welcome!: ''
16+
I don't know you: ''
17+
Wrong password: ''
18+
Who's there?: ''
19+
Password?: ''
20+
Cancel: ''
21+
Admin: ''
22+
TheMaster: ''
23+
Other: ''
24+
25+
chrome-sources-breakpoint.svg:
26+
here's the list: ''
27+
breakpoints: ''
28+
29+
chrome-sources-debugger-pause.svg:
30+
'1': ''
31+
'2': ''
32+
'3': ''
33+
jump to the outer function: ''
34+
watch expressions: ''
35+
current variables: ''
36+
37+
chrome-sources-debugger-trace-1.svg:
38+
nested calls: ''
39+
40+
toolbarButtonGlyphs.svg: {}
41+
42+
code-style.svg:
43+
'2': ''
44+
No space: ''
45+
between the function name and parentheses: ''
46+
between the parentheses and the parameter: ''
47+
Indentation: ''
48+
2 spaces: ''
49+
'A space ': ''
50+
after for/if/while…: ''
51+
'} else { without a line break': ''
52+
Spaces around a nested call: ''
53+
An empty line: ''
54+
between logical blocks: ''
55+
Lines are not very long: ''
56+
A semicolon ;: ''
57+
is mandatory: ''
58+
Spaces: ''
59+
around operators: ''
60+
'Curly brace {': ''
61+
'on the same line, after a space': ''
62+
A space: ''
63+
between: ''
64+
parameters: ''
65+
A space between parameters: ''
66+
67+
recursion-pow.svg:
68+
'pow(x,n)': ''
69+
x: ''
70+
'x * pow(x, n-1)': ''
71+
n == 1 ?: ''
72+
'Yes': ''
73+
'No': ''
74+
recursive call until n==1: ''
75+
76+
try-catch-flow.svg:
77+
Begin: ''
78+
No Errors: ''
79+
An error occured in the code: ''
80+
Ignore catch block: ''
81+
Ignore the rest of try: ''
82+
Execute catch block: ''
83+
'try {': ''
84+
'': ''
85+
'}': ''
86+
// code...: ''
87+
88+
statusbarButtonGlyphs.svg:
89+
'!': ''
90+
91+
field.svg: {}
92+
93+
placeholder.svg: {}
94+
95+
logo-fetch.svg: {}
96+
97+
demo.svg:
98+
'1': ''

0 commit comments

Comments
 (0)
Please sign in to comment.