DEV Community

Cover image for More About Array - JavaScript Series - Part 21
Muhammad Ali (Nerdjfpb)
Muhammad Ali (Nerdjfpb)

Posted on • Originally published at blog.nerdjfpb.com

More About Array - JavaScript Series - Part 21

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.

Alt Text

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

Just using push. This will add the value in end

Alt Text

Now we can easily sort the array using sort

Alt Text

See all results on the browser

Alt Text

Can you use array now ?

You can see the graphical version here

Source Codes - { Check commits }

GitHub logo nerdjfpb / javaScript-Series

A tutorial for JavaScript Beginners

javaScript-Series

A tutorial for Absolute Beginners of JavaScript.

You can find the total pdf in - Here

You can check the commits to find the part by part codes.

Blogs

Day 1
  • Day 1 - What is JavaScript?
Day 2
  • Day 2 - JavaScript Types?
Day 3
  • Day 3 - Javascript Types Cont.
Day 4
  • Day 4 - Javascript Types Cont.
Day 5
  • Day 5 - Javascript Comparisons
Day 6
  • Day 6 - Javascript Variables
Day 7
  • Day 7 - More About Variables
Day 8
  • Day 8 - Conditional Statement
Day 9
  • Day 9 - More Conditional Statement
Day 10
Day 11
Day 12
Day 13
Day 14
Day 15
Day 16
Day 17

Originally it published on nerdjfpbblog. You can connect with me in twitter or linkedin!

Top comments (0)