Wednesday, April 14, 2010

latihan array 4

<HTML> <HEAD> <TITLE>Belajar Array</TITLE> </HEAD> <BODY> <SCRIPT LANGUAGE = "JavaScript"> <!-- var hari = new Array("Minggu","Senin","Selasa","Rabu","Kamis","Jum'at","Sabtu"); for (i=0; i<1; i++) { x = prompt ("masukan kode hari") document.write(hari[x] +"<br>") } alert ("Selamat Belajar Striuktur Data"); alert ("Semoga Memperoleh Ilmu yang Bermanfaat"); //--> </SCRIPT> </BODY> </HTML>

0 komentar:

Post a Comment

Tinggalkan Komentar Disini