const доступен для ES версии 6

Add a file named .jshintrc to your project and inside this file type this.

{
    "esversion": 6
}
Adventurous Armadillo