generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

OKAY WHAT DID I DO WRONG (SUPER SIMPLE JAVASCRIPT)

Previous Thread :: Next Thread 
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
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 is not online. 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
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
09 Jun 2015 07:40 PM
facepalm
Report Abuse
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
09 Jun 2015 07:41 PM
I know that was wrong but thats not the problem
Report Abuse
rayk999 is not online. rayk999
Joined: 18 Feb 2011
Total Posts: 4705
09 Jun 2015 07:41 PM
Did you also fix "30-100"?
Report Abuse
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
09 Jun 2015 07:42 PM
Yeah
Report Abuse
Brickagon is not online. 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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
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
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
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
DoctorHelix is not online. DoctorHelix
Joined: 05 May 2015
Total Posts: 303
09 Jun 2015 08:20 PM
It's allowed not aloud.
Report Abuse
Coinman001 is not online. Coinman001
Joined: 10 Apr 2012
Total Posts: 56149
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 is not online. 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
AbstractMadness is not online. AbstractMadness
Joined: 22 Dec 2014
Total Posts: 20425
09 Jun 2015 08:31 PM
^
Report Abuse
FrenzoBlox is not online. FrenzoBlox
Joined: 20 Dec 2011
Total Posts: 28854
09 Jun 2015 08:39 PM
lol
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image