Add number guessing game with HTML, CSS, and JavaScript implementation

This commit is contained in:
vista-man
2025-01-27 20:17:35 +01:00
parent ef1b5f2420
commit 5b2c9b856e
3 changed files with 59 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="nl">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Raad het getal</title>
<script src="raadgetal.js" defer></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>Raad het getal</h1>
<p>Voer een getal in tussen 1 en 100:</p>
<input type="number" id="guessInput">
<button onclick="checkGuess()">Gok</button>
<p id="result"></p>
</body>
</html>