Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 866 Bytes

97-common-errors.md

File metadata and controls

16 lines (13 loc) · 866 Bytes
title layout
Appendix A – Common Errors
page

General Tips

  • Use the line number provided with the error to find where in your code the error is occurring.
  • The error may not be on the line that reports the error. Check the line directly above for errors, and check other lines that use variables being referenced by the code on these two lines.
SyntaxError: Unexpected identifier.
  • Check that your strings are closed correctly with matching quotes, and no quote marks are breaking the string half-way through.
  • Escape quote marks that are intended to appear within the string using \ backslashes: 'Don\'t forget!'