<html> <head> <title>Array.unshift() returns new length</title> <script language="javascript" type="text/javascript"> <!-- var x = new Array(1,2,3,4); var newLength = x.unshift(10); alert(x.length); alert(x); //--> </script> </head> <body> <h1>Adding to the Beginning</h1> </body> </html>