var i = 10; var myArr = []; do{ myArr.push(i); i++ }while (i<3) console.log("i = " + i); console.log("myArrmy = " + myArr);
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter