This page lists features of JavaScript that are deprecated (that is, still available but planned for removal) and obsolete (that is, no longer usable).
Deprecated featuresThese deprecated features can still be used, but should be used with caution because they are expected to be removed entirely sometime in the future. You should work to remove their use from your code.
RegExp propertiesThe following properties are deprecated. This does not affect their use in replacement strings:
СвойÑÑво ÐпиÑание$1-$9
Parenthesized substring matches, if any. Warning: Using these properties can result in problems, since browser extensions can modify them. Avoid them! $_
СмоÑÑиÑе input
. $*
СмоÑÑиÑе multiline
. $&
СмоÑÑиÑе lastMatch
. $+
СмоÑÑиÑе lastParen
. $`
СмоÑÑиÑе leftContext
. $'
СмоÑÑиÑе rightContext
. input
The string against which a regular expression is matched. lastMatch
The last matched characters. lastParen
The last parenthesized substring match, if any. leftContext
The substring preceding the most recent match. rightContext
The substring following the most recent match.
The following are now properties of RegExp
instances, no longer of the RegExp
object:
global
Whether or not to test the regular expression against all possible matches in a string, or only against the first. ignoreCase
Whether or not to ignore case while attempting a match in a string. lastIndex
The index at which to start the next match. multiline
Whether or not to search in strings across multiple lines. source
The text of the pattern. RegExp methods
compile()
method is deprecated.valueOf
method is no longer specialized for RegExp
. Use Object.valueOf()
.caller
and arguments
properties are deprecated, because they leak the function caller. Instead of the arguments property, you should use the arguments
object inside function closures.StopIteration
ÑÑÑаÑел.Iterator
ÑÑÑаÑел.watch
and unwatch
are deprecated. Use Proxy
instead.__iterator__
ÑÑÑаÑел.Object.prototype.__noSuchMethod__
is deprecated. Use Proxy
instead.getYear
и setYear
are affected by the Year-2000-Problem and have been subsumed by getFullYear
и setFullYear
.toISOString
instead of the deprecated toGMTString
method in new code.toLocaleFormat
is deprecated.Proxy
instead.hasOwn
(Firefox bug 980565, Firefox 33).getEnumerablePropertyKeys
(Firefox bug 783829, Firefox 37)getOwnPropertyNames
(Firefox bug 1007334, Firefox 33)keys
(Firefox bug 1007334, Firefox 33)escape
and unescape
functions are deprecated. Use encodeURI
, encodeURIComponent
, decodeURI
or decodeURIComponent
to encode and decode escape sequences for special characters.String.prototype.fontsize
and String.prototype.big
.String.prototype.quote
is removed from Firefox 37.flags
parameter in String.prototype.search
, String.prototype.match
, and String.prototype.replace
are deprecated.String.prototype.substr
probably won't be removed anytime soon, but it's defined in Annex B of the ECMA-262 standard, whose introduction states: "⦠Programmers should not use or assume the existence of these features and behaviours when writing new ECMAScript code. â¦"These obsolete features have been entirely removed from JavaScript and can no longer be used as of the indicated version of JavaScript.
ÐбÑÐµÐºÑ Function СвойÑÑво ÐпиÑаниеarity
Number of formal arguments. ÐаÑÑив СвойÑÑво ÐпиÑание Array.observe()
ÐÑинÑ
ÑоннÑй пÑоÑмоÑÑ Ð¸Ð·Ð¼ÐµÐ½ÐµÐ½Ð¸Ð¹ в маÑÑиваÑ
. Array.unobserve()
Remove observers. ЧиÑло ParallelArray Statements
for each...in
is deprecated. Use for...of
instead.for...in
is deprecated. Use for...of
instead.СмоÑÑиÑе E4X.
Sharp variablesСмоÑÑиÑе Sharp variables in JavaScript.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4