What browsers currently support JavaScript's 'let' keyword?

前端 未结 7 2181
悲哀的现实
悲哀的现实 2020-11-27 16:29

I\'m developing an app and don\'t have to ever worry about Internet Explorer and was looking into some of the features present in A+ grade browsers that aren\'t in Inte

7条回答
  •  暖寄归人
    2020-11-27 17:09

    Internet Explorer and Opera don't support let on any browser version, Firefox since version 2.0 and Safari since 3.2.

    See this JavaScript version table on Wikipedia.

    I just found out that you need to define whether you use JavaScript 1.7 or not. So your code will be:

    
    

提交回复
热议问题