V.Vidhya Logo

V.Vidhya

Array Methods II


Q1.

For the given start state of an array, change it to final form using splice.

Initial Array : [“jan”, “july”, “march”, “aug”]

Desired Array : [”july”, “june”, “march”, “aug”]


Q2.

Return the index of the “javascript” from the given array, if it was reversed.

[”c”, “c++”, “html”, “javascript”, “python”, “java”, “c#”, “sql”]


Prev Post
Array Methods I
Next Post
Nested Array