123456/pt javascript/D1_frisoderuiter_V4.html

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>Document</title> <script> var getal = 8; raad(); function raad() { var gok = prompt("Raad het getal", "Tip: Het is niet 7"); if (gok == getal) { alert("Gefeliciteerd, je hebt gewonnen!"); } else { raad(); } } </script> </head> <body></body> </html>

Resultaat

Made by Thijs Aarnoudse