Useful summary, thank you! Do you know if it's necessary to add "use strict" if you're using Babel+Webpack?
I don't have enough experience with webpack. But a quick Google search indicated that it adds strict mode automatically, that too in global scope.
Yeah! I am also wondering if "use strict" is still helpfull with IDE's autocomplete and Linting packages like ESLint.
"use strict"
Does Eslint help with eval variable leakage? 🤔. Apart from that I don't think strict mode would be helpful. I think in general it's a great interview question to just see if the candidate is curious or not.
Yeah! Good to know in all cases
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Useful summary, thank you! Do you know if it's necessary to add "use strict" if you're using Babel+Webpack?
I don't have enough experience with webpack. But a quick Google search indicated that it adds strict mode automatically, that too in global scope.
Yeah! I am also wondering if
"use strict"
is still helpfull with IDE's autocomplete and Linting packages like ESLint.Does Eslint help with eval variable leakage? 🤔.
Apart from that I don't think strict mode would be helpful.
I think in general it's a great interview question to just see if the candidate is curious or not.
Yeah! Good to know in all cases