can you pop/push arrays in javascript?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • HQ
    Confirmed User
    • Jan 2001
    • 3539

    #1

    can you pop/push arrays in javascript?

    Can you pop and push values to and from arrays in javascript?
  • bawdy
    Confirmed User
    • Feb 2002
    • 1424

    #2
    Version 5.5 of Micosoft JScript adds these methods to the array object... not sure if they are available on current Client Side Javascript implementations

    arrayObj.pop( )

    arrayObj.push([item1 [item2 [. . . [itemN ]]]])

    since its an implementation of the ECMA 262 language you might expect it to appear on the most recent browsers

    Comment

    • HQ
      Confirmed User
      • Jan 2001
      • 3539

      #3
      Thanks. So I guess I can't do it in JS 1.0 to 1.2.

      Comment

      • bawdy
        Confirmed User
        • Feb 2002
        • 1424

        #4
        CSJS reference for array object

        http://developer.netscape.com/docs/m...sref/array.htm


        certainly has pop and push methods for CSJS v1.2

        Comment

        • HQ
          Confirmed User
          • Jan 2001
          • 3539

          #5
          Excellent, I'll check it out. Thanks.

          Comment

          Working...