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.pop(); document.getElementById("element").innerHTML = myArray; myArray.pop(); </script> </body> </html>