exercise 5 of 10

change and search

Rename tmp to total. Search, change one, then n. for the rest. The search wraps around the end of the file.

try it

loading vim…keys 0par 14best –

goal:

let total = 0;
for (const n of numbers) total += n;
return total;