Skip to content

Commit ac58b8a

Browse files
committed
Fill in more of chapter 20
1 parent d6a6a6d commit ac58b8a

File tree

5 files changed

+576
-21
lines changed

5 files changed

+576
-21
lines changed

00_intro.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ indexsee:[Web,World Wide Web]
287287
JavaScript was introduced in 1995, as a way to add programs to Web
288288
pages in the Netscape Navigator browser. The language has since been
289289
adapted by all other major graphical web browsers. It has made the
290-
current generation of Web applications possible—browser-based email
290+
current generation of web applications possible—browser-based email
291291
clients, maps, and social networks—and is also used in more
292292
traditional sites to provide various forms of interactivity and
293293
cleverness.

08_error.txt

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -405,14 +405,16 @@ parentheses) after `catch` will be bound to the exception value. After
405405
the `catch` block finishes—or if the `try` block finishes without
406406
problems—control proceeds beneath the entire try-catch statement.
407407

408-
(((Error type)))In this case, we used the `Error` constructor to
409-
create our exception value. This is a standard JavaScript constructor
410-
that creates an object with a `message` property. In modern JavaScript
411-
environments, instances of this constructor also gather information
412-
about the call stack that existed when the
413-
exception was created. This information is stored in the `stack` property, and can be very helpful when trying to debug a
414-
problem: it tells us the precise function where the problem
415-
occurred, and which other functions led up to the call that failed.
408+
(((Error type)))(((stack trace)))In this case, we used the `Error`
409+
constructor to create our exception value. This is a standard
410+
JavaScript constructor that creates an object with a `message`
411+
property. In modern JavaScript environments, instances of this
412+
constructor also gather information about the call stack that existed
413+
when the exception was created, a so-called _stack trace_. This
414+
information is stored in the `stack` property, and can be very helpful
415+
when trying to debug a problem: it tells us the precise function where
416+
the problem occurred, and which other functions led up to the call
417+
that failed.
416418

417419
Note that the function `look` completely ignores the possibility that
418420
`promptDirection` might go wrong. This is the big advantage of

0 commit comments

Comments
 (0)