mozilla

Compare Revisions

uneval()

Change Revisions

Revision 418339:

Revision 418339 by Sheppy on

Revision 485193:

Revision 485193 by MatthewKastor on

Title:
uneval
uneval
Slug:
Web/JavaScript/Reference/Global_Objects/uneval
Web/JavaScript/Reference/Global_Objects/uneval
Tags:
"JavaScript"
"JavaScript", "Nonstandard"
Content:

Revision 418339
Revision 485193
n79var a = uneval(function foo(){});n79var a = uneval(function foo(){return 'hi'});
80eval(a);80var foo = eval(a);
81foo(); // ReferenceError: foo is not defined!81foo(); // returns "hi"
t83    <p>t
84      Don't use <code>uneval</code>!
85    </p>
86    <p>
87      <code>uneval()</code>has less support and will Guide you to
> a wrong direction. 
88    </p>

Back to History