Some short code snippets which use all JavaScript keywords
void function() {//abcd
do break;while(typeof delete this);
for(var a;;)
if (true) with(null)
try{}catch(a){}finally{} else throw new 1;
switch(1 in 1 instanceof 1) {
case false:
default:
}
return;
};
Here is an improved version:
new function() {
do break;while(typeof delete this);
for(var a;void 0;)
continue
if (null)
with(0)
try{
switch(1 in 1 instanceof 1) {
case false:
default:throw true
}
}catch(a){}finally{}else return
};
You can post your code snippet if you have a shorter one.
Source : http://justjavac.iteye.com/blog/1564713
RELATED
0 COMMENT
No comment for this article.