每段放一起和分開執行結果是不一樣的
今天看到有5道Javascript題目,很有意思,值得琢磨。原文爲zaka在twitter發的回答Baranovskiy的So, you think you know JavaScript。原文如下:
Quick test for real understanding of JavaScript core beyond closures and scopes. Here five small scripts. Try to answer what will be alerted in each case without running them in the console. Then you could create a test file and easily check your answers. Ready?
原創文章如轉載,請註明:轉載自藍色騎兵 [ http://www.wkeke.cn/ ] 本文鏈接地址:http://www.wkeke.cn/archives/five-small-scripts/