log() is a good way to debug errors but setting breakpoint is a faster, efficient and better method. In this method, Breakpoints are set in code which stops the execution of code at that point so that the values of variables can be examined at that time.
What causes Script errors? Script errors are mostly likely to be caused by an error within a script that's hosted on a different domain (for example, CDN scripts). As a result, the user's browser stops the script from executing in order to prevent an attack called cross-site request forgery.
Always read the entire sentence Always read the entire sentence. When looking for the error, examine each choice individually. Check verbs and pronouns first, since they're the most likely to include errors. When an answer choice contains more than one type of word, check both.