Skip to content

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

Open
@nate-gentry

Description

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" } }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions