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

来自tomtalk
Tom讨论 | 贡献2012年10月14日 (日) 02:05的版本 写一段最短的代码,用上js所有关键字

(差异) ←上一版本 | 最后版本 (差异) | 下一版本→ (差异)
跳转至: 导航搜索

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

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 {} //console.log("可以运行到这里")
    return;
};