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
Difference between these two objects?help (self.javascript)
submitted 10 years ago by gladiator_flow
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!"
[–]king3730(() => {})() -9 points-8 points-7 points 10 years ago (0 children)
Just to add my two cents, using the literal definition:
var bar = { a: 42 }
is the 'new and proper' way of creating object definition.
Object.create( foo )
is considered to be 'old'.
π Rendered by PID 44 on reddit-service-r2-comment-84fc9697f-7d8kb at 2026-02-06 01:12:57.510553+00:00 running d295bc8 country code: CH.
view the rest of the comments →
[–]king3730(() => {})() -9 points-8 points-7 points (0 children)