I am new to node.js and javascript.I checked the node.js code examples and used use strict mode.
For example, server.js:
'use strict';
In addition, I found out that use strict present at the head of each js file. This confused me, and so I want to know what is best used in Nodejs to use strict mode?
Thanks to everyone, my question is focused on strict mode. In this mode, you can report some code error. Does the back-end also have a strict bug reporter? And if I need to use it, should I add it to every js file header? Or add it to the main file (server.js or etc.)? Or use your own node.js style?
Edward
source share