| [ Web Proxy ] |
| Viewing: https://developer.mozilla.org/ja/docs/Web/JavaScript/Reference/Errors/Reserved_identifier | [Back] [Original] |
Get to know MDN better
SyntaxError: Unexpected reserved word (V8-based) SyntaxError: implements is a reserved identifier (Firefox) SyntaxError: Cannot use the reserved word 'implements' as a variable name. (Safari)
SyntaxError
enumimplementsinterfaceletpackageprivateprotectedpublicstaticenum
const enum = { RED: 0, GREEN: 1, BLUE: 2 };
// SyntaxError: enum is a reserved identifier
"use strict";
const package = ["potatoes", "rice", "fries"];
// SyntaxError: package is a reserved identifier
const colorEnum = { RED: 0, GREEN: 1, BLUE: 2 };
const list = ["potatoes", "rice", "fries"];
"use strict";
class DocArchiver {}
// SyntaxError: class is a reserved identifier
// (Firefox 44 )
| Web Proxy Viewer | New URL | Original Page |