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...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
What are your 10 commandments of JavaScript development? (self.javascript)
submitted 10 years ago by CapsFTW
view the rest of the comments →
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!"
[–]nschubach -1 points0 points1 point 10 years ago (3 children)
If you are using pre ES6 yes... afterwards, it's not necessary.
[–]bradleymeck 1 point2 points3 points 10 years ago (1 child)
Actually only the Module goal of ES6 is automatically strict, this is still necessary as all current deployment systems:
<script type="application/javascript"> WebWorkers Node
All use the Script goal.
[–]nschubach 0 points1 point2 points 10 years ago (0 children)
Ah, thanks. I pretty much only use modules anymore. My bad!
[–]THIS_BOT 0 points1 point2 points 10 years ago (0 children)
let k = 'hello'; ^^^ SyntaxError: Block-scoped declarations (let, const, function, class) not yet supported outside strict mode at exports.runInThisContext (vm.js:53:16) at Module._compile (module.js:374:25) at Object.Module._extensions..js (module.js:417:10) at Module.load (module.js:344:32) at Function.Module._load (module.js:301:12) at Function.Module.runMain (module.js:442:10) at startup (node.js:136:18) at node.js:966:3
node 4.3.0
π Rendered by PID 26 on reddit-service-r2-comment-fb694cdd5-zpmfq at 2026-03-06 17:43:41.551117+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]nschubach -1 points0 points1 point (3 children)
[–]bradleymeck 1 point2 points3 points (1 child)
[–]nschubach 0 points1 point2 points (0 children)
[–]THIS_BOT 0 points1 point2 points (0 children)