Splice method is changes the content of an Array Which can help the Adding new element and also can removing odd Element.
Parameters of Details
Index: Index which of changing of the Array
HomMany: In Integer How many number in odds elements of array and removed if the 0 numbers in array can removed
Ele: The Element can add of array which can add odd element
The Syntax Of Splice Method
Array.splice(index, howmany, [ele1, ele2, ....eleN ])
arr = ["orange", "mango", "banana", "sugar", "tea"];
No comments:
Post a Comment