fork download
  1. /**
  2.  * es3_delete.js
  3.  *
  4.  * @url http://d...content-available-to-author-only...e.com/jp/documentation/ScriptingAutomation/Conceptual/JSCodingGuide/Advanced/chapter_5_section_2.html
  5.  * @version 1.0.2
  6.  * @author think49
  7.  */
  8.  
  9. /**
  10.  * ES3 12.2 Variable statement
  11.  * @url http://w...content-available-to-author-only...e.jp/~oz-07ams/prog/ecma262r3/12_Statements.html#section-12.2
  12.  */
  13. var foo = function () {
  14. /**
  15.   * ES3 11.4.1 The delete Operator
  16.   * @url http://w...content-available-to-author-only...e.jp/~oz-07ams/prog/ecma262r3/11_Expressions.html#section-11.4.1
  17.   */
  18. print(delete foo); // false (foo has the DontDelete attribute.)
  19. };
  20.  
  21. print(typeof foo); // function
  22. foo();
  23. print(typeof foo); // function
Success #stdin #stdout 0.23s 213440KB
stdin
Standard input is empty
stdout
function
false
function