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

Amandeep Pasricha
Amandeep Pasricha
14,928 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
177,955 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?