Skip navigation
push, pop, unshift and shift all change the original array.
0:00

push, pop, unshift and shift all change the original array.

#javascript #webdev #codingtips

push, pop, unshift and shift all change the original array. push(‘ship’) → adds to the end, returns the new length pop() → removes the last item, returns it unshift(‘fix’) → adds to the start, returns the new length shift() → removes the first item, returns it Save 🔖 and follow @karelm_dev for more #javascript #webdev #codingtips #frontend #programming

Comments

Comments from the original post on Instagram

No comments yet