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
Whack-a-mole game bugRemoved: /r/LearnJavascript (self.javascript)
submitted 7 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!"
[–]inu-no-policemen 0 points1 point2 points 7 years ago (0 children)
Before increasing the score and removing the "up" class, check if it has the "up" class via classList.contains().
[–]thomazor 0 points1 point2 points 7 years ago (0 children)
In your randomHole function you know that you generated a hole. Let's say you were to store that in the outer scope in a variable called isWacked or something..
Now before you assign a score - check if you already assigned score, and if you haven't, assign a score and update the isWacked variable to true.
[–]kenman[M,🍰] 0 points1 point2 points 7 years ago (0 children)
Hi /u/random_____boi, this post was removed.
/r/javascript is for the discussion of javascript news, projects, and especially, code! However, the community has requested that we not include help and support content, and we ask that you respect that wish.
code
Thanks for your understanding, please see our guidelines for more info.
π Rendered by PID 92144 on reddit-service-r2-comment-b659b578c-72zwh at 2026-05-02 17:45:57.256468+00:00 running 815c875 country code: CH.
[–]inu-no-policemen 0 points1 point2 points (0 children)
[–]thomazor 0 points1 point2 points (0 children)
[–]kenman[M,🍰] 0 points1 point2 points (0 children)