SHARE
TWEET

Untitled

Rofihimam Sep 3rd, 2019 80 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Switch Case Rofi'ul Himam XI RPL 2</title>
  5.     <link rel="stylesheet" type="text/css" href="BuatIf.css">
  6. </head>
  7. <body>
  8.     <script type="text/javascript" language="javascript">
  9.         var pilihan = prompt("Pilihan untuk cek pulsa\n 1. Informasi pulsa anda\n 2. Informasi masa aktif dan masa tenggang anda");
  10.         pilihan = parseInt(pilihan);
  11.         switch (pilihan) {
  12.             case 1: alert("Jumlah pulsa anda adalah sembilan belas ribu rupiah");
  13.                 break;
  14.             case 2: alert("Masa aktif kartu anda hingga 28 Desember 2019");
  15.                 break;
  16.             default:
  17.                 alert("Pilihlah sesuai nomor yang ada");
  18.                 break;
  19.         }
  20.     </script>
  21. </body>
  22. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top