Results 1 to 7 of 7

Thread: games war

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2010
    Location
    Arthunkal
    Posts
    17

    Default My personal page

    Add an element to position 2 in an array - splice()

    <html>
    <body>

    <script type="text/javascript">

    var fruits = ["Banana", "Orange", "Apple", "Mango"];
    document.write("Removed: " + fruits.splice(2,0,"Lemon") + "<br />");
    document.write(fruits);

    </script>

    </body>
    </html>

  2. #2
    Join Date
    Oct 2003
    Location
    Kochi, Kerala, India
    Posts
    21,389

    Default

    thanks....

  3. #3
    Join Date
    Dec 2011
    Posts
    52

    Default

    good creative information

Tags for this Thread

Bookmarks

Posting Permissions

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