Mats Haby
Mats Haby

Mats Haby

Blog Author Picture

Mats Haby

1 follower

I was a DevOps engineer with 10 years of work experience that fell in love with writing code for web development. Now, finally I'm starting my journey to be a full-time web developer!

Array methods: pop( ) and shift( )

Jan 13, 20211 min read 61 views

Array pop With the Array method pop(), you can remove the last element from an array and it returns the removed element. pop() changes the length of the array.If you call pop() in on an empty array, it will return undefined. Array shift shift() Is...

Array methods: pop( ) and shift( )
#100DaysOfCode
Rubber duck debugging
Welcome and JS - What is an Array and how to add elements to an array