Search code examples
javascriptmeteorstrict

Use Strict MeteorJS


Accidental Duplicate: Should I add "use strict" to my meteor files?

From what I understand, use strict is good practice in JavaScript.

Should I use this when building MeteorJS Apps? If I should, where should I include this statement?

If not, why not?


Solution

  • Short answer YES

    the its a good practice because MeteorJs at the end of the day is Javascript

    where should I include this statement?

    At the very top of each file.

    Also @pfkurtz on this SO gives 2 methods to use it, im never test that options, but the answer have up votes so it could work.

    This GitHub Issue its helpful too.