This is the error I get when using const:(这是我在使用const时遇到的错误:)
<error line="2" column="1" severity="warning" message="'const' is available in ES6 (use esnext option) or Mozilla JS extensions (use moz)." source="jshint.W104" />
My code looks like this:(我的代码如下所示:)
const Suites = {
Spade: 1,
Heart: 2,
Diamond: 3,
Club: 4
};
The code works fine only JSHint is warning me every time.(只有JSHint每次都警告我,代码才能正常工作。)
ask by Andre Schlesinger translate from so
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…