<html>
<body>
<script type="text/javascript">
var alph = ["a", "b", "c", "d"];
document.write(alph.slice(0,1) + "<br />");
document.write(alph.slice(1) + "<br />");
document.write(alph.slice(-2) + "<br />");
document.write(alph);
</script>
</body>
</html>
No comments:
Post a Comment