Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Study</title>
- </head>
- <body>
- <script>
- `use strict`
- /*
- 0: 0 1 2 3 4 5
- 1: 0 1 2 3 4 5
- 2: 0 1 2 3 4 5
- */
- let maxY = 6;
- let maxX = 10;
- let messageStr = '';
- for (let y = 0; y <= maxY; ++y) {
- messageStr = `${y}: `;
- for (let x = 0; x <= maxX; ++x) {
- messageStr += `${x} `;
- }
- console.log(messageStr);
- }
- console.log('Job is DONE! :)');
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment