Sabtu, 17 April 2010

Logic case


#head>

#/head>

#body>

#script>

a=3;

switch(a){

case 1:document.write("ini angka satu");

break;

case 2:document.write("ini angka dua");

break;

case 3:document.write("ini angka tiga");

break;

default:document.write("ini bukan angka satu,dua,tiga");

}

#/script>

#/body>