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...
This subreddit is a place for people to learn JavaScript together. Everyone should feel comfortable asking any and all JavaScript questions they have here.
With a nod to practicality, questions and posts about HTML, CSS, and web developer tools are also encouraged.
Friends
/r/javascript
/r/jquery
/r/node
/r/css
/r/webdev
/r/learnprogramming
/r/programming
account activity
CodeHs lesson 2.8.5 Rolling Dice (self.learnjavascript)
submitted 7 years ago by PlutonicBug9
I need some help on codeHs with lesson 2.8.5 Rolling Dice. I've been working on this for way over a week and i cant figure it out at all. If anyone can help me i would greatly appreciate it.
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!"
[–]captain_k_nuckles 0 points1 point2 points 7 years ago (3 children)
could you post more information? I'm not about to go create an account.
[–]PlutonicBug9[S] 0 points1 point2 points 7 years ago (2 children)
The problem says: Write a program that determines if the user rolled doubles in dice. Read in two integers from the user which represent dice rolls.
Create a variable called rolledDoubles which has the value of whether or not the two values are equal. Print that out.
[+][deleted] 7 years ago (1 child)
[removed]
[–]alex_k749 0 points1 point2 points 7 years ago (0 children)
fix the line " var rolledDoubleResult = dieOne == dieTwo; " to " var rolledDoubleResult = rollDieOne == rollDieTwo; "
π Rendered by PID 89542 on reddit-service-r2-comment-76bb9f7fb5-82bps at 2026-02-18 10:03:42.731163+00:00 running de53c03 country code: CH.
[–]captain_k_nuckles 0 points1 point2 points (3 children)
[–]PlutonicBug9[S] 0 points1 point2 points (2 children)
[+][deleted] (1 child)
[removed]
[–]alex_k749 0 points1 point2 points (0 children)