Export (0) Print
Expand All

Unterminated string constant (JavaScript)

You did not end your string constant with a closing quotation mark. String constants must be enclosed within a pair of quotation marks.

NoteNote

You can use matching pairs of single or double quotation marks. Double quotation marks can be contained within strings surrounded by single quotation marks, and single quotation marks can be contained within strings surrounded by double quotation marks.

To correct this error

  • Add the closing quotation mark to the end of the string.

Show:
© 2014 Microsoft