I was trying some code at JSBin and got weird results. This should work - it's a simple loop that uses Window.prompt. It does execute the correct number of time
xinput
warm-up
polar-coordinates
badge
grails-2.0
jruby
mediaprojection
smart-listing
scriptprocessor
qabstractitemmodel
square-flow
application-error
datetimeindex
pattern-mining
threestate
flexbox
spl
couchdb-lucene
vpd
duration
radix-sort
django-pandas
primeng-datatable
writeonly
c++pmr
kendospreadsheet
photo-picker
security-warning
watir-webdriver
rcpparmadillo