Source Code:
(back to article)
Submit
Result:
Report an issue
<!DOCTYPE html> <html> <body> <p id="element"></p> <script> var myArray = ["1", "2", "3", "4"]; myArray.shift(); document.getElementById("element").innerHTML = myArray; </script> </body> </html>