본문 바로가기

Errors, try and catch

English

Errors stop a program

  • When JavaScript cannot carry out a line, it throws an error, and the program stops there.
  • The message names the kind of error and what went wrong. Read it before changing anything.
  • ReferenceError means a name does not exist, often a typo. TypeError means a value is the wrong kind, such as calling something that is not a function.

교재 자료

로그인 또는 계정 만들기

IGCSE, A-Level & AP