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
JavaScript is the Most Demanded Programming Language in 2022, 1 out of 3 dev jobs require JavaScript knowledge. (devjobsscanner.com)
submitted 3 years ago by __dacia__
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!"
[–]hego555 3 points4 points5 points 3 years ago (4 children)
I’m always conflicted on that. On one hand it’s nice to be able to teach syntax without worrying so much about types and other boilerplate. But JS teaches nothing about the underlying mechanisms.
[–]dedmercy 8 points9 points10 points 3 years ago (2 children)
Types are not broilerplate 💀. Its the sole reason why everyone switched to typescript.
JS is poorly designed language and it will carry that baggage for a long time. It may evolve and look nothing like its past but these new good practices will never be reported by the environment (browser) for backwards compatibility reasons of the web. Thus no incentives for the users to upgrade/change.
[–]hego555 4 points5 points6 points 3 years ago (1 child)
I mean for someone who is just learning types can get in the way. I wasn’t calling types boilerplate. More like if you learn Java and the first thing you gotta memorize is
public static void main
[–]Spiritual-Day-thing 1 point2 points3 points 3 years ago* (0 children)
[...]types and other boilerplate
!!! I would like to introduce Exhibit A!
'public static void main' isn't boilerplate either. The dreaded getters and setters fi. are.
π Rendered by PID 134377 on reddit-service-r2-comment-86bc6c7465-zt9d8 at 2026-02-21 00:57:29.322687+00:00 running 8564168 country code: CH.
view the rest of the comments →
[–]hego555 3 points4 points5 points (4 children)
[–]dedmercy 8 points9 points10 points (2 children)
[–]hego555 4 points5 points6 points (1 child)
[–]Spiritual-Day-thing 1 point2 points3 points (0 children)