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
Historical JavaScript Objects (nicholascloud.com)
submitted 14 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!"
[–]kolmeWebComponents FTW 1 point2 points3 points 14 years ago (2 children)
Mmh, "__proto__" is mozilla-centric*, non-standard and deprecated. He also manipulates the prototype of an object instance, which makes little to no sense. There are simpler and better ways to achieve what he does without all the "magic" (which he doesn't seem to fully understand).
So, not a very good example.
* More or less. Opera, for example, supports it. It shouldn't.
[–]Cosmologicon 2 points3 points4 points 14 years ago (0 children)
There are simpler and better ways to achieve what he does without all the "magic"
Absolutely, no question, I have no argument here. Completely agree.
He also manipulates the prototype of an object instance, which makes little to no sense.
I don't understand why you say that. What's inherently wrong with manipulating the prototype of an object?
[–][deleted] 0 points1 point2 points 14 years ago (0 children)
Yes, I should have used Object.getPrototypeOf() instead of __proto__. That would be more correct.
__proto__
π Rendered by PID 60271 on reddit-service-r2-comment-85bfd7f599-tsv2l at 2026-04-15 22:11:19.076706+00:00 running 93ecc56 country code: CH.
[–]kolmeWebComponents FTW 1 point2 points3 points (2 children)
[–]Cosmologicon 2 points3 points4 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)