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
command-line-interface
c99
uttype
codelens
pnp.powershell
ragged-tensors
cg
sigma-grid-control
esri-maps
dereference
php-parse-error
yii2-rbac
clientresource
selenium-server
zgc
account-linking
x-content-type-options
marc
rvm
null-test
sklabelnode
audio-source
spriteview
tagfile
image-comparison
droppable
onkeylistener
json-annotation
dplyr
django-1.7