|
| 09 Jun 2015 07:39 PM |
confirm("I am ready for the challenge!") var age = prompt("What's your age");
if(age < 1-30) { console.log("You're not aloud to play but I take no responsibility") } else if(age > 30-100) { console.log("Play on!") }
Any errors or anything that doesn't make sence in the code |
|
|
| Report Abuse |
|
|
Brickagon
|
  |
| Joined: 01 Jun 2015 |
| Total Posts: 366 |
|
|
| 09 Jun 2015 07:39 PM |
"if(age < 1-30)" what are you trying to accomplish here
that is equivalent to
if(age < -29) |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2015 07:41 PM |
| I know that was wrong but thats not the problem |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 09 Jun 2015 07:41 PM |
| Did you also fix "30-100"? |
|
|
| Report Abuse |
|
|
| |
|
Brickagon
|
  |
| Joined: 01 Jun 2015 |
| Total Posts: 366 |
|
|
| 09 Jun 2015 07:43 PM |
If you fixed it, show me the new code. Nothing else is wrong. |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 07:43 PM |
...oh my god. learn grammar...
confirm("I am ready for the challenge!"); var age = prompt("What's your age?");
if (age < 30) { console.log("You're not allowed to play the game.") } else if (age > 30) { console.log("Play on!") } |
|
|
| Report Abuse |
|
|
|
| 09 Jun 2015 08:18 PM |
Okay got help
confirm("I am ready for the challenge!");
var age = prompt("What's your age?");
if(age < 13) { console.log("You're not aloud to play but I take no responsibility") } else if(age>=13) { console.log("Play on!") }
Turns out that that specific session I needed to use 13. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Jun 2015 08:22 PM |
confirm("I am ready for the challenge!") var age = prompt("What's your age");
if(age < 30) { console.log("You're not aloud to play but I take no responsibility") } else if(age > 30) { console.log("Play on!") } |
|
|
| Report Abuse |
|
|
MrNicNac
|
  |
| Joined: 29 Aug 2008 |
| Total Posts: 26567 |
|
|
| 09 Jun 2015 08:29 PM |
"Turns out that that specific session I needed to use 13."
Sounds like some crazy CodeCademy logic |
|
|
| Report Abuse |
|
|
| |
|
| |
|