Change Theme: Sky - Beige - Simple - Serif - Night - Default
					
						
					
						
						
					
						
						
<div style="position: absolute; left: -2000px;">
	<input type="text" name="name"  value="" />
</div>
						
						
					
						
					
var foo = function (){
	console.log("Hello World!");
};
foo();
						
						
var a=function(){console.log("Hello World!")};a()
						
						
					
eval(function(p,a,c,k,e,d){e=function(c){return c};if(!''
.replace(/^/,String)){while(c--){d[c]=k[c]||c}k=[
function(e){return d[e]}];e=function(){return'\\w+'};
c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+
e(c)+'\\b','g'),k[c])}}return p}('2 0=1(){3.4("6 5!")};
0();',7,7,'foo|function|var|console|log|World|Hello'
.split('|'),0,{}))
						
						
					var temper = (function() {
	var eval = window.eval,
		eval_log = function() {
			window.eval = eval;
			console.log(arguments);
			return eval.apply(this, arguments);
		};
	return {
		override: function() {
			window.eval = eval_log;
		},
		restore: function() {
			window.eval = eval;
		}
	}
}());
						
					with (foo) {
	bar = foo;
}
console.log(bar);
					
					var a = 'Hello';
function foo (str){
	"use strict";
	eval(str);
	return a;
}
function bar (str){
	eval(str);
	return a;
}
console.log (foo('var a=" world!"') + bar('var a=" world!"'));
					
					var i = 0;
while(10 > i++){
	console.log(i);
	if (i==0) break;
}
i = 0;
while(10 > ++i){
	console.log(i);
	if (i==0) break;
}
i = 0;
while(10 > + +i ){
	console.log(i);
	if (i==0) break;
}
					
					== / ===
console.log('0' == 0); // true
console.log('0' === 0); // false
						
						
var a = 0,
    b = undefined,
    c = null,
    d = '';
						
						
console.log(!a , !b, !c, !d); // true, true, true, true
						
						
console.log(a == d);
						
						True
== / ===
var a = 0,
    b = undefined,
    c = null;
						
						
console.log(a == b);
						
						False
console.log(a == c);
						
						False
console.log(c == b);
						
						True
== / ===
var a = "abc",
    b = new String("abc"),
    c = new String("abc");
						
						
console.log(a == b, a == c);
						
						True, True
console.log(a === b);
						
						False
== / ===
var a = "abc",
    b = new String("abc"),
    c = new String("abc");
						
						
console.log(b == c);
						
						False
console.log(b == b);
						
						True
== / ===
var a = 0,
    b = NaN,
    c = NaN;
						
						
console.log(!a, !b , !c); //True, True, True
						
						False
console.log(a == b, b == c);
						
						False , False
console.log(b == b, c == b);
						
						False , False
making a code that behaves different when debugger is running
function detectDebugger (){
		var foo, bar;
		foo = new Date().getTime();
		debugger;
		bar = new Date().getTime();
		return bar - foo;
	}
					
					making a code that behaves different when its changed
CRC
var a = (function () {var a = function(s) {var... '');return f;};}());
var q = function(a){var b,c,d,e,f;for(b=65521,c=1,d=e=0;
(f=a.charCodeAt(e++));d=(d+c)%b)c=(c+f)%b;return(d<<16)|c;};
					
					var c = function(a,c,d) {if (d){
...
var b = function(){var a=new Date().getTime();debugger;return a;};
...
switch(a) {
...
case 2:return function(){debugger;return new Date().getTime();};
...
return ((a-b)<=1 && (b-a)<=1)?0/0:(a-b)/(b-a);};}}
					
					with(k) {...
n = z ? t + z * 2 : k.length;
for(t += z; t < n; t += 1) {
	w += k[t];
}
t = z ? t : z;
v += aa(q(w));
z +=y;
if(((a - b) > 2 || (b - a) > 2) || c == c) {
	z += h;
}
...
if(((a - b) <= 1 && (b - a) <= 1) && (d == e)) {
	z += l;
}
...
g=e;y=c;c=f;f=g;g=d;d=y;e=g;