Keep the smaller value as the best-so-far. Goal: Compare the saved best value with the next value and keep the smaller one.
Track one useful value while scanning prices.
One variable remembers the lowest price; the answer compares against it.
Drag tokens into the blanks
1// Goal: Compare the saved best value with the next value and keep the smaller one.2function starterExample() {3let best = 9;4const next = 4;5 best = Math.___(best, next);6}