美文网首页
写一段最短的代码,用上js所有关键字

写一段最短的代码,用上js所有关键字

作者: 窗边冷月光 | 来源:发表于2018-04-17 16:00 被阅读0次
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; 
}; 
 
// or
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  // console.log("测试") 
};

相关文章

网友评论

      本文标题:写一段最短的代码,用上js所有关键字

      本文链接:https://www.haomeiwen.com/subject/nmcpkftx.html