top of page
Search

Shift and unshift

  • zakariyesahid96
  • Jan 31, 2022
  • 1 min read
  • Shift removes from start.

  • Unshift adds to start.

  • An example of shift is

movieLIne.shift()

Tom

Let nextPatron=MovieLine.shift()


  • To demonstrate unshift:

Movieline.unshift('VIP’)

 
 
 

Comments


Post: Blog2_Post
  • Facebook
  • Twitter
  • LinkedIn

©2021 by zaktech96. Proudly created with Wix.com

bottom of page