Continue
Continue
continue skips the rest of the current loop pass and moves to the next one. It is useful when one item should be ignored without stopping the whole loop.
Your task: Loop through scores and add only valid scores to validScores. A valid score is from 0 through 100, inclusive. Log the valid scores after the loop.
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.
Continue
continue skips the rest of the current loop pass and moves to the next one. It is useful when one item should be ignored without stopping the whole loop.
Your task: Loop through scores and add only valid scores to validScores. A valid score is from 0 through 100, inclusive. Log the valid scores after the loop.