Array.splice
<html>
<head>
<title>Array literal</title>
<script type="text/javascript" >
planets = ['q', 'v', 'e', 'a', 'j'];
planets.splice(2, 2);
document.write(planets);
</script>
</head>
<body>
</body>
</html>
Related examples in the same category