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
httpplatformhandler
content-editor
sql-pl
imblearn
ieee-754
spring-config
qcombobox
grep-indesign
.net-core-2.0
custom-pipeline-component
code-search-engine
cgcontext
denormalization
current-page
automated-tests
auto-import
aspect
fold
wit.ai
strikethrough
sam
uicollectionviewdelegateflowlayout
webdav
e-notices
xcode7
.net-standard
android-toast
dosbox
mybatis-mapper
scientific-notation