Reading Notes
Execution Contexts
Error Objects
name type of errormessage descriptionfileNumber name of the JS filelineNumber line number errorError generic errorSyntaxError syntax has not been followedReferenceError tried to reference a variable that is not declared or outside the scopeTypeError unexpected data type that cannot be coercedRangeError numbers not in acceptable rangeURIError encodeURI(), decodeURI(), adn similar methods not used correctlyEvalError eval() function used incorrectlyList of Chrome Browser Errors and their definitions on page 460
Debugging Workflow
Typing into the Chrome console
Console Methods
console.log('Example'); Prints “Example” to the console without any symbolsconsole.info('Example'); Prints “Example” to the console with an info symbolconsole.warn('Example'); Prints “Example” to the console with a warning symbolconsole.error('Example'); Prints “Example” to the console with an error symbolconsole.table(); Output tables showing objects, and nested arraysconsole.assert(); test if a condition is met and write to the console only if expression evaluates to falseBreakpoints
Debugger Keyword
debugger keyword that when placed in code will stop the interpreter at that line of code if the developer tools are open, can be placed inside a conditional statement so that code is only paused if certain situation is presentHandling Exceptions