Run to execute this JavaScript code for real (output appears here).
Ready.
Checks every element from left to right until the target is found or the array ends. Works on unsorted data. Press Run (Ctrl + Enter) to animate, or Step forward (F10) to go one event at a time.
Step
1 / 10
Line (JavaScript)
—
main (no active function frames)
No counted operations yet.
[7, 3, 9, 4, 1, 8]