@@ -405,14 +405,16 @@ parentheses) after `catch` will be bound to the exception value. After
405405the `catch` block finishes—or if the `try` block finishes without
406406problems—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
417419Note that the function `look` completely ignores the possibility that
418420`promptDirection` might go wrong. This is the big advantage of
0 commit comments