Quiz: Logical Operators

What does this program print?

const age = 16;
const withParent = true;

if (age >= 18 || withParent) {
    console.log("Come in");
} else {
    console.log("Sorry, you're too young");
}

Start programming for free

By signing up, you agree to the Terms of Service and Privacy Policy.

Or sign up with:

10/13