Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

HELLP please I don't understand why that doesn't work HELP #1379

Open
nate-gentry opened this issue Jul 22, 2017 · 0 comments
Open

HELLP please I don't understand why that doesn't work HELP #1379

nate-gentry opened this issue Jul 22, 2017 · 0 comments

Comments

@nate-gentry
Copy link

function basicTeenager(age){
if (age == 13-19);
{ return "You are a teenager!" }
}

function teenager(age) {
if (age == 13-19);
{ return "You are a teenager!" }
else { return "You are not a teenager" }
}

function ageChecker(age){
if (age == 13-19);
{ return "You are a teenager!" }
else if (age <= 12);
{ return "You are a kid" }
else { return "You are a grownup" }
}

function ternaryTeenager(age)
 { return age == 13-19 ? "You are a teenager" : "You are not a teenager" }

function switchAge(age)
{ switch(age) { case age >= 13 && age <= 19: return "You are a teenager" default: return "You have an age" } }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant