58

一道面试题引发的“血案”

 6 years ago
source link: https://juejin.im/post/5bab1d4ae51d450e4d2feb7a
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
es6之前,js的作用域只有两种,全局作用域和函数作用域,没有像C和java那样的块级作用域,于是对于学了C或者java这类语言的然后学习js的同学来说,会遇到很多坑。js的这个特性导致了代码的可阅读性、维护性和容错性都不太好。因此es6可以用let来申明变量

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK