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
codelite
auth-request
flutter-js
mold
controlflowguard
lvm
cellrenderer
interaction
navision
mjpeg
westwind
multiplestacks
tomcat-juli
azure-cosmosdb-mongoapi
atlassian-crowd
app-config
laravel-5.7
skybox
case-conversion
androidx
fromhtml
devise-confirmable
executionengineexception
spf
ddd-debugger
tymon-jwt
amazon-fifoqueue
linux-mint-19
haskell-pipes
scroller