📜  let 和 var 的区别 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:21.803000             🧑  作者: Mango

代码示例3
------------------Differences------------------        var            let
Global Scope                                        Yes            No
Can be changed outside statement where made in        Yes            No
Block Scope                                            No            Yes