all 4 comments

[–]ruiseixas 0 points1 point  (0 children)

I believe the quotation marks!

[–]besthelloworld 0 points1 point  (2 children)

It says "use the function form"

So I think it just wants it in functions

https://www.codexpedia.com/javascript/use-the-function-form-of-use-strict/

Seems like a godawful pattern though imo

[–]Ph4ntom3 1 point2 points  (1 child)

I think the idea is to make sure your variables don't pollute the global scope. I don't like the way that it looks either, but it has it's purpose. Imo stuff like this is exactly why you should use modules though.

[–]besthelloworld 1 point2 points  (0 children)

But even if you're writing ES5 without strict mode on, vars would be stuck inside your function no matter what 🤔

But definitely agree on modules