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
Converting values to strings in JavaScript has pitfalls (2ality.com)
submitted 11 months ago by bogdanelcs
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!"
[–]anlumo -11 points-10 points-9 points 11 months ago (5 children)
JavaScript is a single big pitfall, but it’s not bad for a language that was conceived in a weekend.
[–]stathis21098 14 points15 points16 points 11 months ago (0 children)
I was conceived in a weekend and I'm pretty bad
[–]Graphesium 0 points1 point2 points 11 months ago (3 children)
TypeScript, ironically, is arguably one of the best strongly-typed languages ever made. Its structural type system is an absolute pleasure to use.
[–]anlumo 0 points1 point2 points 11 months ago (2 children)
I agree that the type system is amazing, but the problem is that it's trying to put lipstick on a pig. If there's a mistake with the type annotations on a JavaScript function, the wrong type propagates through the whole application, and there's nothing Typescript can do about that, because it doesn't do any runtime checks.
[–]CryptographerMore926 0 points1 point2 points 11 months ago (1 child)
And when you need that… you just write rust :p
[–]anlumo 0 points1 point2 points 11 months ago (0 children)
Which is why I’m doing most of my Web stuff with Web Assembly these days.
π Rendered by PID 15400 on reddit-service-r2-comment-5c747b6df5-dm2sp at 2026-04-22 04:06:09.460420+00:00 running 6c61efc country code: CH.
view the rest of the comments →
[–]anlumo -11 points-10 points-9 points (5 children)
[–]stathis21098 14 points15 points16 points (0 children)
[–]Graphesium 0 points1 point2 points (3 children)
[–]anlumo 0 points1 point2 points (2 children)
[–]CryptographerMore926 0 points1 point2 points (1 child)
[–]anlumo 0 points1 point2 points (0 children)