javascript - nodejs need use 'strict use'?or what is the best practice of node's strict mode? -
i'm new node.js , javascript.i checked code examples of node.js , used use strict
mode.
for example, server.js:
'use strict'; //some server code
also, got know use strict
present @ head of every js file. confused me , want know best practice in nodejs use strict mode?
thank all, question focus on strict mode. in mode, code mistake can reported. in back-end, strict error reporter run? , if need use it, should add in every js file header? or add in main file(server.js or etc.) head? or use node.js self style?
use always. if nothing else, ensures code written, , cross browser compatible can be. reveal mundane syntax errors otherwise go unfound, , lead hours of unnecessary debugging.
Comments
Post a Comment