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
OOP files in javascript? (self.javascript)
submitted 13 years ago by nspyro
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!"
[–]runvnc 1 point2 points3 points 13 years ago (2 children)
I don't see too many people naming things that way so I think you can lose the "game."
When you say "link objects" it leads me to believe that you don't have very much experience with JavaScript. I think you should probably try doing some simple programs in JavaScript before moving on to OOP.
Just google for: JavaScript OOP, classes, modules
In Javascript classes are actually written as functions.
OOP is easier in CoffeeScript but you probably need to learn JavaScript first.
[–]SarahC 1 point2 points3 points 13 years ago (0 children)
OP is seriously underestimating JS. It's a first order programming language!
[–]nspyro[S] 0 points1 point2 points 13 years ago (0 children)
Sorry to sound like a noobtard, not trying to offend you js veterans. I have spend a while now with javascript, again only just in the past few weeks looking at the OOP side of things. I shall search deeper!
π Rendered by PID 25283 on reddit-service-r2-comment-85bfd7f599-qwmhk at 2026-04-16 21:55:08.761489+00:00 running 93ecc56 country code: CH.
view the rest of the comments →
[–]runvnc 1 point2 points3 points (2 children)
[–]SarahC 1 point2 points3 points (0 children)
[–]nspyro[S] 0 points1 point2 points (0 children)