67482/error-use-of-const-in-strict-mode
I'm working with node.js, and in one of my js files I'm using const in "strict mode". When trying to run it, I'm getting an error:
SyntaxError: Use of const in strict mode.
What is the best practice to do this?
Hello,
If this is happening in nodejs, it is due to the older version of nodejs. Update node by using,
1) Clear NPM's cache:
sudo npm cache clean -f
2) Install a little helper called 'n'
sudo npm install -g n
3) Install latest stable NodeJS version
sudo n stable
JSON and a JSONPath are both strings ...READ MORE
Hello, Unfortunately, Node.js doesn't support ES6's import yet. To accomplish what ...READ MORE
Hiii @kartik, To get a single callback for ...READ MORE
Hello @kartik, An error code 400 response is ...READ MORE
Hello @kartik, To resolve this error you can ...READ MORE
Hello @kartik, If your package.json looks something like ...READ MORE
Hello, Generating a new CSRF token for each ...READ MORE
Hello, When the variable is passed as value ...READ MORE
Hello, To navigate to another component you can ...READ MORE
Hello @kartik, "use strict"; Basically it enables the strict ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.