• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 11. Arrays > Removing Elements from an Array

11.8. Removing Elements from an Array

You can remove elements from an array by using the delete operator, reducing the length property of an array, or using one of the built-in array methods.

11.8.1. Removing Numbered Elements with the delete Operator

The delete operator sets an array element to undefined, using the following syntax:


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint