const

面试官常问之说说js中var、let、const的区别

var、let和const都是JavaScript中用来声明变量的关键字,并且let和 const关键字是在 ES6 中才新增的,下面这篇文章主要给大家介绍了关于var、let、const区别的相关资料,需要的朋友可以参考下