36

es6、7、8、9新语法新特性-总结

 5 years ago
source link: https://juejin.im/post/5c6629a3f265da2dd638dfa1
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.
1、let和const命令let命令,用来声明变量。它的用法类似于var,但是所声明的变量,只在let命令所在的代码块内有效。{ let a = 10; var b = 1; } a // ReferenceError: a is not defin

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK