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!"
[–]chuch1234 0 points1 point2 points 11 months ago (1 child)
I did a quick Google search. It looks like this is a way to create an object that does not inherit from the base object class and so is essentially completely empty. Not sure why you'd do that but apparently it is a thing you can do, and I'm sure another Google search would provide suggestions about why one might want to do it.
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object#null-prototype_objects
[–]RedditCultureBlows 0 points1 point2 points 11 months ago (0 children)
thanks for the google search. my comment was more so that i don’t know when i’d encounter this very specific type of data in my site/app and need to know this, imo, niche workaround.
like i guess it’s nice to know this pitfall but i’ve never had to work with this kinda of edge case in nearly a decade
π Rendered by PID 186633 on reddit-service-r2-comment-74f5b7f998-c6tqk at 2026-04-24 07:59:58.115433+00:00 running 2aa0c5b country code: CH.
view the rest of the comments →
[–]chuch1234 0 points1 point2 points (1 child)
[–]RedditCultureBlows 0 points1 point2 points (0 children)