Foundations

Else If Chains

Else If Chains

An else if chain checks ordered conditions. Once one branch runs, the later branches are skipped.

Your task: Use the provided score to set scoreTier. Scores of 90 or more are "excellent", scores of 70 or more are "passing", and lower scores are "practice". Log the tier.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Else If Chains

An else if chain checks ordered conditions. Once one branch runs, the later branches are skipped.

Your task: Use the provided score to set scoreTier. Scores of 90 or more are "excellent", scores of 70 or more are "passing", and lower scores are "practice". Log the tier.

Free with a JS Exercises account

Sign in to start coding, run your solution, and keep your progress saved for later. No payment needed.

By continuing, you agree to our Terms and Privacy Policy. We'll send occasional product updates and news. You can unsubscribe anytime.

Console

Run code to see output.