- script.js
JavaScript
var score;
Result
Goalscompleted
Write the main program loop with muffin.getScore().
- Assign the result of
muffin.getScore()to thescorevariable. - Add loop
while (score > -1) { }under the variable. “Timeout error” might be logged on this and the next step. This is normal. - Inside the loop, log the variable
scorein the console. - After logging
scoreinside the loop, assign the result ofmuffin.getScore()toscoreagain.
Comments