The Speaker of the House would continue as the president
If both the President and Vice President are unable to serve, the Speaker of the House of Representatives becomes President. This succession is established by the Presidential Succession Act of 1947. The Speaker takes over until a new President is elected or appointed.
;
Jawaban:Tentu! Mari kita buat **game sederhana menggunakan HTML, CSS, dan JavaScript** — yaitu game **“Tebak Angka”**, di mana pemain menebak angka rahasia antara 1–100. Jika kamu membuka file-nya di browser, game ini langsung bisa dimainkan.---### ✅ **Langkah 1: Buat file HTML****Nama file**: `index.html````html<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <title>Game Tebak Angka</title> <link rel="stylesheet" href="style.css"></head><body> <div class="container"> <h1>Game Tebak Angka!</h1> <p>Tebak angka dari 1 sampai 100</p> <input type="number" id="inputAngka" placeholder="Masukkan angka..."> <button onclick="tebakAngka()">Tebak!</button> <p id="hasil"></p> <p id="kesempatan">Kesempatan tersisa: 10</p> <button onclick="resetGame()" id="resetBtn">Main Lagi</button> </div> <script src="script.js"></script></body></html>```---### ✅ **Langkah 2: Buat file CSS****Nama file**: `style.css````cssbody { font-family: Arial, sans-serif; background-color: #f0f8ff; text-align: center; margin-top: 50px;}.container { background-color: white; width: 400px; margin: auto; padding: 30px; border-radius: 15px; box-shadow: 0 0 10px rgba(0,0,0,0.2);}input { padding: 10px; font-size: 16px; width: 60%;}button { padding: 10px 20px; margin-top: 10px; font-size: 16px; cursor: pointer;}#resetBtn { display: none; background-color: #28a745; color: white; border: none;}```---### ✅ **Langkah 3: Buat file JavaScript****Nama file**: `script.js````javascriptlet angkaRahasia = Math.floor(Math.random() * 100) + 1;let kesempatan = 10;function tebakAngka() { const input = document.getElementById("inputAngka"); const hasil = document.getElementById("hasil"); const kesempatanEl = document.getElementById("kesempatan"); let tebakan = parseInt(input.value); if (isNaN(tebakan) || tebakan < 1 || tebakan > 100) { hasil.innerText = "Masukkan angka antara 1 - 100!"; return; } kesempatan--; if (tebakan === angkaRahasia) { hasil.innerText = ` Selamat! Kamu menebak angka yang benar: ${angkaRahasia}`; selesaiGame(); } else if (kesempatan === 0) { hasil.innerText = ` Kesempatan habis! Angka yang benar adalah ${angkaRahasia}`; selesaiGame(); } else if (tebakan < angkaRahasia) { hasil.innerText = "Terlalu rendah!"; } else { hasil.innerText = "Terlalu tinggi!"; } kesempatanEl.innerText = `Kesempatan tersisa: ${kesempatan}`; input.value = "";}function selesaiGame() { document.getElementById("resetBtn").style.display = "inline-block"; document.getElementById("inputAngka").disabled = true;}function resetGame() { angkaRahasia = Math.floor(Math.random() * 100) + 1; kesempatan = 10; document.getElementById("inputAngka").disabled = false; document.getElementById("inputAngka").value = ""; document.getElementById("hasil").innerText = ""; document.getElementById("kesempatan").innerText = "Kesempatan tersisa: 10"; document.getElementById("resetBtn").style.display = "none";}```---### ✅ **Cara Menjalankan Game**1. Buat tiga file: * `index.html` * `style.css` * `script.js`2. Buka file `index.html` di browser (Chrome, Edge, Firefox, dll).3. Mainkan gamenya!---Kalau kamu mau versi **game lain seperti:*** Tebak gambar* Kuis pilihan ganda* Game ular (*snake*)* Game klik cepat...tinggal bilang saja. Bisa juga aku buatkan versi **apk Android atau versi mobile responsif**. Mau dilanjut ke game lain?Penjelasan:berikut adalah cara untuk membuat codingan