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?
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
To get a single callback for ...READ MORE
An error code 400 response is ...READ MORE
callback is not a keyword, its just ...READ MORE
As, you are up to ajax so ...READ MORE
Generating a new CSRF token for each ...READ MORE
When the variable is passed as value ...READ MORE
You have to provide MySQL hostname, ...READ MORE
Actually there are many functions that ...READ MORE
To navigate to another component you can ...READ MORE
Unfortunately, Node.js doesn't support ES6's import yet.
To accomplish what ...READ MORE
Already have an account? Sign in.