dcsimg
www.webdeveloper.com
Results 1 to 4 of 4

Thread: pop()

  1. #1
    Join Date
    Mar 2011
    Posts
    45

    pop()

    hi there i was just wondering what the use for the pop() function and the shift() function in the javascript array object... seems very pointless to me, can someone tell me how it can benefit you

  2. #2
    Join Date
    Mar 2010
    Posts
    2,803
    Read These For More

    pop()

    shift()

  3. #3
    Join Date
    Mar 2007
    Location
    Canada
    Posts
    99
    When you're tired of using the one then you can switch to the other (even though they do different things)

  4. #4
    Join Date
    Jan 2007
    Location
    Wisconsin
    Posts
    2,120
    They're there to allow you to treat arrays like queues or stacks without having implement your own push(), pop(), shift(), and unshift() methods.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles