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("去掉注释可以运行到这里")
};
JavaScript 写一段最短的代码,用上js所有关键字
最新推荐文章于 2023-09-19 16:31:57 发布
本文深入探讨了JavaScript中高级语法特性及其在代码执行中的应用,包括使用break、delete this、for循环、if语句、with上下文、try-catch-finally块、throw关键字、switch-case语句等。通过实例分析,展示了这些语句如何在不同场景下影响程序的运行逻辑,以及它们之间的相互作用。
210

被折叠的 条评论
为什么被折叠?



