@@ -193,7 +193,7 @@ a little dialog box with a message. It is used like this:
193193alert("Good morning!");
194194-----
195195
196- image::../ img/alert.png[alt="An alert dialog"]
196+ image::img/alert.png[alt="An alert dialog"]
197197
198198indexsee:[application (of functions),function application]
199199indexsee:[invoking (of functions),function application]
@@ -248,7 +248,7 @@ if the user clicks OK and `false` if the user clicks Cancel.
248248confirm("Shall we, then?");
249249-----
250250
251- image::../ img/confirm.png[alt="An confirm dialog"]
251+ image::img/confirm.png[alt="An confirm dialog"]
252252
253253(((prompt function)))(((text input)))`prompt` can be used to ask an
254254“open” question. The first argument is the question; the second one is
@@ -260,7 +260,7 @@ the dialog window, and the function will return this as a string.
260260prompt("Tell me everything you know.", "...");
261261-----
262262
263- image::../ img/prompt.png[alt="An prompt dialog"]
263+ image::img/prompt.png[alt="An prompt dialog"]
264264
265265These two functions aren't used much in serious web programming,
266266mostly because you have no control over the way the resulting windows
@@ -324,7 +324,7 @@ string value, and we want a number. There are similar functions called
324324Here is a rather boring schematic representation of straight control
325325flow:
326326
327- image::../ img/controlflow-straight.svg[alt="Trivial control flow"]
327+ image::img/controlflow-straight.svg[alt="Trivial control flow"]
328328
329329== Conditional execution ==
330330
@@ -333,7 +333,7 @@ straight-line order isn't the only option we have. A common
333333requirement is conditional execution, where we choose between two
334334different routes based on a boolean value.
335335
336- image::../ img/controlflow-if.svg[alt="Conditional control flow"]
336+ image::img/controlflow-if.svg[alt="Conditional control flow"]
337337
338338Conditional execution is written with the `if` keyword in JavaScript.
339339In the simple case, we just want some code to be executed if, and only
@@ -400,7 +400,7 @@ and 100, and `"Medium"` is shown. If it doesn't, the second and last
400400
401401The arrow schema for this program looks something like this:
402402
403- image::../ img/controlflow-nested-if.svg[alt="Nested if control flow"]
403+ image::img/controlflow-nested-if.svg[alt="Nested if control flow"]
404404
405405== while and do loops ==
406406
@@ -423,7 +423,7 @@ make something _less_ work, not more. If we needed all even numbers
423423less than 1,000, the previous would be unworkable. What we need is a
424424way to repeat some code—a _loop_.
425425
426- image::../ img/controlflow-loop.svg[alt="Loop control flow"]
426+ image::img/controlflow-loop.svg[alt="Loop control flow"]
427427
428428Looping control flow allows us to go back to some point in the program
429429where we were before, and repeat it, in the context of our current
0 commit comments