Which index reads the target value 8? Goal: The target is 8. Pick the index that reads 8 from [4, 8, 15].
Connect the current number to a target.
The loop gives you one number at a time; the blank is the number you still need.
1// Goal: The target is 8. Pick the index that reads 8 from [4, 8, 15].2function starterExample() {3const nums = [4, 8, 15];4const current = nums[1];5}
Which index reads the target value 8?