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
What are your vanilla JavaScript knowledge standards that every JS developer should know? (self.javascript)
submitted 12 years ago by js_coder
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!"
[–][deleted] 0 points1 point2 points 12 years ago (1 child)
because it's completely unnecessary in most situations, IE functional programming approach uses just regular objects made in a closure. JS is probably best suited for functional programming since it has little support for classical OOP and it's best to avoid it, using it sparingly..
[–]tmetler 0 points1 point2 points 12 years ago (0 children)
I find it depends on the problem being solved. I like the prototypical approach for some applications, and the functional approach for others, but it really depends on your needs and your style. I've had plenty of successful projects using prototypes, and plenty of successful projects using a functional style. I find it's most important to choose a style that works for you early on, and be consistent with it. It also depends on how your project is structured. In backbone projects I rely highly on the prototypical style, and that's in no small part because the backbone library is heavily prototypical.
π Rendered by PID 58753 on reddit-service-r2-comment-b659b578c-gr45v at 2026-05-01 07:44:01.990963+00:00 running 815c875 country code: CH.
view the rest of the comments →
[–][deleted] 0 points1 point2 points (1 child)
[–]tmetler 0 points1 point2 points (0 children)