| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ko/docs/Web/JavaScript/Reference/Errors/No_variable_name | [Back] [Original] |
Get to know MDN better
This page was translated from English by the community. Learn more and join the MDN Web Docs community.
SyntaxError: missing variable name (Firefox)
SyntaxError: Unexpected token = (Chrome)
SyntaxError
. . , . ! .
var = "foo";
. .
var ohGodWhy = "foo";
. . . :(
var debugger = "whoop";
// SyntaxError: missing variable name
. ? ?
var x, y = "foo",
var x, = "foo"
var first = document.getElementById('one'),
var second = document.getElementById('two'),
// SyntaxError: missing variable name
:
var x,
y = "foo";
var x = "foo";
var first = document.getElementById("one");
var second = document.getElementById("two");
JavaScript Array . .
var arr = 1,2,3,4,5;
// SyntaxError: missing variable name
:
var arr = [1, 2, 3, 4, 5];
This page was last modified on 2024 12 17 by MDN contributors.
Your blueprint for a better internet.
Portions of this content are 19982026 by individual mozilla.org contributors. Content available under a Creative Commons license.
| Web Proxy Viewer | New URL | Original Page |