每段放一起和分开执行结果是不一样的
今天看到有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/