I am starting a new mini series on JavaScript. I’m starting it from zero. Anyone can start learning from here. My goal is helping others while learning! I know about JavaScript and I’m working on a MERN tech stack. But I think it is not a bad idea to revise the JavaScript from scratch and helping others in this time. If you have any questions, shoot on the comment session or you can directly ask me in my social media. Social media links are in the last part of today’s lesson! Let’s learn JavaScript together.
More About Array — JavaScript Series — Part 21
A full series to learn the JavaScript from zero
2 min readFeb 15, 2020
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 ?
Originally it published on nerdjfpb blog. Check the git for codes.