Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (16 sloc) 525 Bytes
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title></title>
</head>
<body>
<script type="text/javascript">
var color = new Array('red', 'blue', 'yellow', 'black');
var color2 = color.slice(1, 2);
//color.splice(1, 2);
//color.splice(2, 0, 'brown', 'pink');
color.splice(2, 2, 'brown', 'pink');
alert(color);
</script>
</body>
</html>