Foundations

Break

Break

break exits a loop immediately when a search has found the value it needs, so later matches cannot replace the first result.

Your task: Search the provided task names for the first task that includes "fix". Store it in firstFixTask, stop searching, and log the found task.

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.

Break

break exits a loop immediately when a search has found the value it needs, so later matches cannot replace the first result.

Your task: Search the provided task names for the first task that includes "fix". Store it in firstFixTask, stop searching, and log the found task.

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.