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

SyntaxError: applying the 'delete' operator to an unqualified name is deprecated - 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: applying the 'delete' operator to an unqualified name is deprecated

"applying the 'delete' operator to an unqualified name is deprecated" delete.

In this article

SyntaxError: Delete of an unqualified identifier in strict mode. (V8-based)
SyntaxError: applying the 'delete' operator to an unqualified name is deprecated (Firefox)
SyntaxError: Cannot delete unqualified property 'a' in strict mode. (Safari)

SyntaxError .

?

JavaScript delete. .

delete . "", .

, delete . , , delete.

. false.

JavaScript :

js
"use strict";

var x;

// ...

delete x;

// SyntaxError:   'delete'     

, null:

js
"use strict";

var x;

// ...

x = null;

// X    ""


Web Proxy Viewer  |  New URL  |  Original Page