Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title> Arithmetic Trainer </title>
- <meta charset = "utf-8" />
- <script>
- document.getElementById("eventClick").addEventListener("click",
- function() {
- let numOne;
- let numTwo;
- for(let i = 0; i < 11; i++) {
- numOne = Math.floor(Math.random() * 10);
- numTwo = Math.floor(Math.random() * 10);
- document.write(numOne + "*" + numTwo + "=");
- document.getElementById("eventType").addEventListener("keyup",
- )
- }
- }
- )
- </script>
- </head>
- <body>
- <input id = "eventClick" type = "button" value = "Ready?" />
- <input id = "eventType" type = "text" />
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement