I was trying to enter strict mode with
"use strict"; and I got this error:
Expected an assignment or function call and instead saw an expression no-unused-expressions
does anyone know how to fix this?
The problem was that the
"use strict" wasn't the first expression in my code.
- always put
"use strict";at the beginning.