Tugas Struktur Data POP
Script
<html>
<head>
<title>Tugas Javascript Manipulasi Array || Pop</title>
</head>
<body>
<center><h2>Tugas Javascript Manipulasi Array || Metode Pop</h2></center>
<script src="tugas1.js"></script>
</body>
</html>
var nama = new Array;
nama.push("Dendi");
nama.push("Dimas");
nama.push("Arti");
nama.push("Danu");
nama.push("Indra");
nama.push("Rahmat");
nama.push("Dewi");
nama.push("Ayu");
document.write("nama : "+nama.toString() +"<br>");
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>")
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
<html>
<head>
<title>Tugas Javascript Manipulasi Array || Pop</title>
</head>
<body>
<center><h2>Tugas Javascript Manipulasi Array || Metode Pop</h2></center>
<script src="tugas1.js"></script>
</body>
</html>
var nama = new Array;
nama.push("Dendi");
nama.push("Dimas");
nama.push("Arti");
nama.push("Danu");
nama.push("Indra");
nama.push("Rahmat");
nama.push("Dewi");
nama.push("Ayu");
document.write("nama : "+nama.toString() +"<br>");
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>")
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
var AmbilData = nama.pop();
document.write("Data Yang Diambil : "+AmbilData);
document.write("<br>");
document.write("Stack Terakhir : "+nama.toString());
document.write("<br>");
Tidak ada komentar:
Posting Komentar