Why does JSHint throw a warning if I am using const?

后端 未结 17 2996
眼角桃花
眼角桃花 2020-12-12 08:18

This is the error I get when using const:



        
17条回答
  •  星月不相逢
    2020-12-12 08:59

    I spent ages trying to fix this. Every solution talks about 'setting options'. I don't know what that means. Finally, I figured it out. You can just include a commented out line at the top of the file /*jshint esversion: 6 */.

提交回复
热议问题