Browse Source

Bonus task for HW#2

master
Anna Prokhorova 1 year ago
parent
commit
fdfa5e667f
1 changed files with 24 additions and 0 deletions
  1. +24
    -0
      Bonus task for HW#2.html

+ 24
- 0
Bonus task for HW#2.html View File

@ -0,0 +1,24 @@
<!DOCTYPE html>
<html>
<head>
<title>Bonus task HW #2 - Prokhorova A.</title>
</head>
<body>
<form>
<script>
var cntr = 1;
for (var i = 0; i < 3; i++) {
for (var j = 0; j < 3; j++) {
document.write("<button type=\"button\">" + cntr + "</button> ");
cntr += 1;
}
document.write("<br>");
}
document.write("<button type=\"button\">0</button> ");
document.write("<button type=\"button\">-</button> ");
document.write("<button type=\"button\">+</button> ");
</script>
</form>
</body>
</html>

Loading…
Cancel
Save