Run »
<html> <body> <p>The unshift method returns the length of the new array.</p> <button onclick="myFunction()">Try it</button> <p id="demo"></p> <p><b>Note:</b> The unshift() method does not work properly in Internet Explorer 8 and earlier, the values will be inserted, but the return value will be <em>undefined</em>.</p> </body> </html>
×
Report a Problem:
Your E-mail:
Page address:
Description:
Submit