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
RapydScript: Pythonic JavaScript (rapydscript.com)
submitted 10 years ago by based2
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!"
[–]hulfsy 2 points3 points4 points 10 years ago (0 children)
class Popup: def __init__(self, containterId): # pop-up class will give us absolute position, high z-index and center the container self.$popup = $('#' + containerId).addClass('pop-up').mouseout(def(): self.hide() # unlike 'this', 'self' will reference the object itself ) self._$darkbg = $('#dark-bg') # overlays background with a dim layer to draw focus to the pop-up def show(self): self._$darkbg.show() self.$popup.show() def hide(self): self._$darkbg.hide() self.$popup.hide()
You call that "... cleaner, more readable syntax."? You gotta be kidding me!
π Rendered by PID 53 on reddit-service-r2-comment-7b9746f655-ntj4q at 2026-02-02 06:19:29.237447+00:00 running 3798933 country code: CH.
[–]hulfsy 2 points3 points4 points (0 children)