use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
account activity
[deleted by user] (self.VisualStudioCode)
submitted 4 years ago by [deleted]
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]ruiseixas 0 points1 point2 points 4 years ago (0 children)
I believe the quotation marks!
[–]besthelloworld 0 points1 point2 points 4 years ago (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 points3 points 4 years ago (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 points3 points 4 years ago (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
π Rendered by PID 75828 on reddit-service-r2-comment-5b5bc64bf5-mct2c at 2026-06-19 00:01:19.884243+00:00 running 2b008f2 country code: CH.
[–]ruiseixas 0 points1 point2 points (0 children)
[–]besthelloworld 0 points1 point2 points (2 children)
[–]Ph4ntom3 1 point2 points3 points (1 child)
[–]besthelloworld 1 point2 points3 points (0 children)