10種與眾不同的編程語言

我們熟知的js其實也是很詭異的,不信你看看下面的這些代碼。

// This prints 10:

alert(++[[]][+[]]+[+[]]);

// And this "fail":

alert((![]+[])[+[]]+(![]+[])[+!+[]]+([![]]+[][[]])[+!+[]+[+[]]]+(![]+[])[!+[]+!+[]]);


分享到:


相關文章: