123456/pt javascript/L3_jedidjafabriek_V4.html

<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Topo</title> <script> topo=[] while (true){ if(confirm("Wil je nog een land invoeren?")){ var land = prompt("Vul een land in.",""); var hoofdstad = prompt("Wat is de hoofdstad van dat land?"); topo[land]=hoofdstad; } else{ break } } </script> </head> <body> </body> </html>

Resultaat

Made by Thijs Aarnoudse