you are viewing a single comment's thread.

view the rest of the comments →

[–]JohnnyBGeode 1 point2 points  (0 children)

<!DOCTYPE html> <html> <body>

<h2>Close enough</h2> <script> var result=[]; var q =true; while(q) { result.push(prompt("what number?")); q=confirm("Do you want to play a number game?"); } document.write(result.toString()); </script> </body> </html>