Use strict need to write or not?



  • Use strict should be indicated at the beginning of the code for inclusion in the strict regime in the documentation. Strict treatment is only required with ECMA Script 5? Is he gonna identify us writing ECMA Script 5? Please explain, I'm confused.



  • Yeah, we need to use it. 'use strict'; ES5 and nova.

    This is an indication to the browser that it is necessary to swap and perform the crypt on the more modern rules, and that attempts have been made to correct some of the js architects.

    If I'm not mistaken, there's an opportunity in silver js Wednesday to point it through the arguments of the command line. You can also write it at the file level. But for the browsers, it makes sense to write it at the level of self-propelled modulus.

    Details https://ru.stackoverflow.com/questions/435546/%d0%a7%d1%82%d0%be-%d0%b7%d0%bd%d0%b0%d1%87%d0%b8%d1%82-use-strict


Log in to reply
 


Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2