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
java-security-manager
autocommand
braintree-sandbox
angular-lazyloading
ensemble-learning
github-api-v4
rampart
openpyxl
ddd-repositories
device-admin
existential-type
netflix-eureka
concurrent-processing
jquery-mobile-popup
cypress-task
ikvm
openlayers-5
oso
frame-pointer
serverless-webpack-plugin
options
paradox
bootstrap-menu
unity-webgl
fastlane-match
jenkins-job-builder
prototype
ng-bootstrap-modal
becomefirstresponder
identity-management