Demo: JavaScript while loop

while loop : sum of all single digit numbers

while loop with break keyword:
A minimum of how many numbers, starting from 1, will be required to make their sum greater than 1000 ?