--- id: 5dbc2d056ef5fe3a704f84a2 title: Part 139 challengeType: 0 --- # --description-- Inside `pick`, create a `while` loop to run the same code multiple times. The code inside the `while` loop should keep repeating while `numbers.length` is less than 10 and stop once that condition is no longer true. Here is an example of a while loop that repeats code inside the loop while `i` is less than five. ```js let ourArray = []; let i = 0; while(i < 5) { ourArray.push(i); i++; } // ourArray now equals [0,1,2,3,4] ``` # --hints-- See description above for instructions. ```js assert( pick .toString() .replace(/\s/g, '') .includes( 'while(numbers.length<10){if(_LPC++%2000===0&&Date.now()-_LP>1500){' ) ); ``` # --seed-- ## --before-user-code-- ```html RPG - Dragon Repeller
XP: 0 Health: 100 Gold: 50
Monster Name: Health:
Welcome to Dragon Repeller. You must defeat the dragon that is preventing people from leaving the town. You are in the town square. Where do you want to go? Use the buttons above.
``` ## --after-user-code-- ```html ``` ## --seed-contents-- ```html ``` # --solutions-- ```html ```