!null !!null !undefined !!undefined !0 !!0 !NaN !!NaN
forked from level0_ExclamationMark Tips (diff: 5)
@author Takashi Murai(KAYAC)
ActionScript3 source code
/**
* Copyright coppieee ( http://wonderfl.net/user/coppieee )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/quYd
*/
// forked from Murai's level0_ExclamationMark Tips
package {
import flash.display.*;
import flash.text.*;
/*
@author Takashi Murai(KAYAC)
*/
[SWF(width="400", height="400", frameRate="24", backgroundColor="#FFFFFF")]
public class Main extends Sprite {
public var txt:TextField;
public function Main() {
init();
}
public function init():void{
txt = new TextField();
txt.width = 400;
txt.height = 400;
addChild(txt);
txt.appendText("ExclamationMark Tips"+"\n");
txt.appendText("http://level0.kayac.com/2009/06/post_26.php"+"\n"+"\n");
txt.appendText("!null = "+String(Boolean(!null))+"\n");
txt.appendText("!!null = "+String(Boolean(!!null))+"\n");
txt.appendText("!undefined = "+String(Boolean(!undefined))+"\n");
txt.appendText("!!undefined = "+String(Boolean(!!undefined))+"\n");
txt.appendText("!0 = "+String(Boolean(!0)+"\n"));
txt.appendText("!!0 = "+String(Boolean(!!0)+"\n"));
txt.appendText("!NaN = "+String(Boolean(!NaN)+"\n"));
txt.appendText("!!NaN = "+String(Boolean(!!NaN)+"\n"));
}
}
}