<html>
<head>
<title>Array Type Slice Example</title>
<script type="text/javascript">
var colors = ["red", "green", "blue", "yellow", "purple"];
var colors2 = colors.slice(1);
var colors3 = colors.slice(1,4);
alert(colors2); //green,blue,yellow,purple
alert(colors3); //green,blue,yellow
</script>
</head>
<body>
</body>
</html>