ข้ามไปยังเนื้อหา
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