Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4572044
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T19:35:25+00:00 2026-05-21T19:35:25+00:00

How to deploy array in jQuery and java script? i need to explore in

  • 0

How to deploy array in jQuery and java script?
i need to explore in this topic? Can any one help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T19:35:26+00:00Added an answer on May 21, 2026 at 7:35 pm

    As jQuery is JavaScript, creating an array is simply:

    var arr = ["an", "array"]; // array with 2 values
    var arr = []; // empty array
    

    There is never a reason to use the Array constructor.

    Read more about arrays.


    Because someone mentioned associative arrays:

    Although they might look like arrays, they are not arrays (in a strict JavaScript sense). This kind of data structure is normally created using objects (here with object literal notation. Same thing: There is no reason to use the Object constructor.):

    var obj = {
        foo: "bar"
    };
    

    In JavaScript you can access object properties with either dot notation (obj.foo) or array notation (obj['foo']). This is convenient but you should not make the mistake to confuse objects and arrays.

    Especially you should not mix it and attach properties to an array (like an other answer shows) if you don’t know how/why it works (in short: Nearly everything in JavaScript is an object, also arrays. That does not mean that you should use them as such.).

    Read more about objects.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to deploy a few files that were checked in sometime ago (can't
Sometimes we deploy applications behind customer firewall and we need read only access to
I need to deploy an application on the WAS ND 6.1 and do not
I recently deploy one web application in one of my development servers. I'm using
We have a C# code base that we have to deploy on Java. We
This is a simple VBS script. But when I double-click on this, I get
I deploy Django apps using a fabric script that checks out a copy of
To deploy a new version of our website we do the following: Zip up
We currently deploy web applications by creating a database and running SQL scripts through
I'm about to deploy a mediumsized site powered by Django. I have a dedicated

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.