很好的解释 let var
区别时scope不同
https://stackoverflow.com/questions/762011/whats-the-difference-between-using-let-and-var-to-declare-a-variable
let var const
const 就是:不能改变引用(reference)
https://edgecoders.com/function-scopes-and-block-scopes-in-javascript-25bbd7f293d7
网友评论