I believe V8 underlying Node.js supports strict mode or ES5 by default.
Can we enable non strict or ECMASCRIPT 3 in V8 engine?
almost 100% of ES5 features are available in Chrome (V8) see compatibility table .
But some developers(including me) are still comfortable with ES3, can we have that option?
Just don’t include the string
"use strict"in your code. V8 supports strict mode, it doesn’t use it unless you tell it to (i.e. it follows the ES5 specification).Compare the following scripts:
Input:
Output:
and
Input:
Output: