![]() |
A sparse array is an array in which not all elements have been assigned a value. This means that there are “holes” or undefined slots in the array where no value is explicitly set. Example: Here, the array Javascript
Output
[ <1 empty item>, 'one', <1 empty item>, 'three' ] 4 |
Reffered: https://www.geeksforgeeks.org
JavaScript |
Type: | Geek |
Category: | Coding |
Sub Category: | Tutorial |
Uploaded by: | Admin |
Views: | 13 |