JavaScript JavaScript Loops, Arrays and Objects Tracking Multiple Items with Arrays Useful Array Methods

Amandeep Pasricha
Amandeep Pasricha
Front End Web Development Techdegree Student 8,845 Points

What would happen if search; was written inside the whole loop than outside of it?

They wrote while; outside the while loop. What if it was inside the loop?

1 Answer

Steven Parker
Steven Parker
168,625 Points

In this video, the code that works with "search" is inside the loop (defined by "while (true)").

What part do you see outside the loop?