Thursday, 1 March 2012

using push


<html>
<body>

<script type="text/javascript">

var alph = ["a", "b", "c", "d"];
document.write(alph.push("b") + "<br />");
document.write(alph.push("c","d") + "<br />");
document.write(alph);

</script>

</body>
</html>

No comments:

Post a Comment