Recently Microsoft announced the support for EcmaScript 6 in Visual Studio code.
However when you try to use ES6 features, you get errors:
Hovering over the error, gives some insight on how to fix this:
We have to create or edit our jsconfig.json file and change the target to ES6.
Add a new file and call it jsconfig.json. Add the following configuration settings:
If you now go back to the code file, the errors are gone:
Happy coding!
However when you try to use ES6 features, you get errors:
Hovering over the error, gives some insight on how to fix this:
We have to create or edit our jsconfig.json file and change the target to ES6.
Add a new file and call it jsconfig.json. Add the following configuration settings:
If you now go back to the code file, the errors are gone:
Happy coding!