{{ Obsolete_header() }}
Summary
Deprecated. Evaluates a string of JavaScript code in the context of an object.
Method of Object | |
Implemented in: | JavaScript 1.1, NES2.0 JavaScript 1.2, NES 3.0: Deprecated as a method of objects; retained as a top-level function. |
Syntax
object.eval(string)
Parameters
string
- Any string representing a JavaScript expression, statement, or sequence of statements. The expression can include variables and properties of existing objects.
Description
The eval
method should no longer be used as a method of Object
. Use the top-level eval
function instead.
See Also
{{ languages( { "ja": "ja/Core_JavaScript_1.5_Reference/Global_Objects/Object/eval", "pl": "pl/Dokumentacja_j\u0119zyka_JavaScript_1.5/Obiekty/Object/eval" } ) }}