Thread replies: 4
Thread images: 1
Anonymous
Can someone give me a hand with this javascript? Not sure if this is too complicated...
2016-07-15 14:12:14 Post No. 156400
[Report]
Image search:
[Google]
Can someone give me a hand with this javascript? Not sure if this is too complicated...
Anonymous
2016-07-15 14:12:14
Post No. 156400
[Report]
This is my first real javascript assignment and I'm having kind of a hard time with it. I talked to my instructor about it, and he said I could go to a forum and ask for help since it isn't due for a while. This being said, I don't want you guys to necessarily spoon feed me information, nor do I want to plagiarize anything - I want to learn this shit because I'm going to be required to do it at a job someday. However I'm kind of at an impasse with this program.
The goal of the program is to illustrate how stupid it is to play Lucky Sevens. The program does the following:
1. The user inputs how much cash they want to spend.
2. When they roll the dice, the computer automatically rolls the dice at random.
3. When they land on 7, the user wins $4.
5. When they land on anything else, they lose $1.
There's more to it, but that's the only part I'm having trouble with right now. Could somebody look at this for me?
This is the code :
http:// pastebin.com/aUL4L8jc