Errors in coding

?
View mindmap
  • Errors
    • Exception handling
      • Exception handling recovers an error before it crashes the program
      • Uses Try, Except and Catch blocks of code
      • It traps the error so it can handle it
      • If a non integer in attempted to convert string to integer it would crash so you have to Except and inform there input wasn't valid

Comments

Oscar

Report

The "unexpected reserved word await" error occurs when the await keyword is used inside a function that is not marked async. To use the await keyword inside a function, mark the directly enclosing function as async. Many people face this problem and do not understand what to do with it. It feels like everything is done right. In order to understand what to do next, there is a very informative article SyntaxError: Unexpected reserved word ‘await’ thanks to which you can eliminate this error.

Similar Computing resources:

See all Computing resources »See all Errors resources »