JavaScript Quiz โก push() & shift() array methods
Let's break it down ๐ฅ
shift() removes the first element and returns the removed element.
push() adds the elements at the end of the array and returns the new length of the array
const roles = ["DevOps", "Front-End", "Back-End", "Designer"];
๐ ...
blog.codewithshan.com1 min read