[ Web Proxy ]
URL:
Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Errors/Unexpected_token [Back]  [Original]

SyntaxError: Unexpected token - JavaScript | MDN

This page was translated from English by the community. Learn more and join the MDN Web Docs community.

View in English Always switch to English

SyntaxError: Unexpected token

    SyntaxError: expected expression, got "x"
    SyntaxError: expected property name, got "x"
    SyntaxError: expected target, got "x"
    SyntaxError: expected rest argument name, got "x"
    SyntaxError: expected closing parenthesis, got "x"
    SyntaxError: expected '=>' after argument list, got "x"

In this article

SyntaxError

?

. , .

, , . JavaScript .

js
Math.max(2, 42,);
// SyntaxError: expected expression, got ')'

.

js
Math.max(2, 42);
Math.max(2, 42, 13 + 37);


Web Proxy Viewer  |  New URL  |  Original Page