In last part we learned about array, in this part we are going to go a little deep around arary.

Suppose we’ve an array of favAnimeList = [‘One piece’, ‘Dr Stone’, ‘Haikyuu’, ‘Attack on Titan’]

Now we want to delete the last one. How we can do this ?

Using the pop.

Now we want to add “naruto” in the array. How we can do this ?

Just using push. This will add the value in end

Now we can easily sort the array using sort

See all results on the browser

Can you use array now ?

See the codes –

Find me on social media – twitter, linkedin

Leave a Reply

Your email address will not be published. Required fields are marked *