Session
8 new from Beginner Text Navigation. About 2 min.
New
Move up one line
k
The loop header is on the line above. Move up to it.
~/notes · vim cart.jsgoal
1function total(items) {
2 let sum = 0;
3 for (const item of items) {
4 sum += item.price;
5 }
6 return sum;
7}
cart.js4,5
or press Enter