<html>
<head>
<title>Last Element Returned</title>
<script language="javascript" type="text/javascript">
<!--
var x = new Array("a","b","c","d");
var lastEl = x.pop();
alert(x.length);
alert(lastEl);
//-->
</script>
</head>
<body>
<h1>Last Element Returned</h1>
</body>
</html>