top of page
Search
zakariyesahid96

Push and pop

  • Push element adds to the end and pop removes from the send.

  • Shift removes from the start and unshift adds to the start.

  • For example:

movieLime.push('oliver')

  • With pop you do

let person=movieLine.pop()

"Person"=Pablo

Now moveline changes

4 views0 comments

Recent Posts

See All

Comments


Post: Blog2_Post
bottom of page