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

SyntaxError: identifier starts immediately after numeric literal - JavaScript | MDN

MDN Web Docs

View in English Always switch to English

SyntaxError: identifier starts immediately after numeric literal

JavaScript "identifier starts immediately after numeric literal" (_) ($)

js
SyntaxError: Unexpected identifier after numeric literal (Edge)
SyntaxError: identifier starts immediately after numeric literal (Firefox)
SyntaxError: Unexpected number (Chrome)

SyntaxError

JavaScript (_) ($) 2 (0-9)

JavaScript

js
var 1life = 'foo';
// SyntaxError: identifier starts immediately after numeric literal

var foo = 1life;
// SyntaxError: identifier starts immediately after numeric literal

alert(1.foo);
// SyntaxError: identifier starts immediately after numeric literal

js
var life1 = "foo";
var foo = life1;


Web Proxy Viewer  |  New URL  |  Original Page