Codington
0 of 10 problems solved • 0%
Use in a course

Exercise prompt

Check Whether a Name Exists

A boolean can remember whether a loop has encountered a matching value.

Your task

Use a loop to check whether targetName appears in names, then display Found: true. Do not use .includes() or .find().