最大的区别是和variable scope相关的,所以请先理解这部分。
在说明区别之前,最好先整理下何种情况下使用哪种关键字作为大的原则。
最后谈及 var, let 和const的区别。
var
let
const