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