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

  • SEARCH
  • Home
  • 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 8651805
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T14:09:33+00:00 2026-06-12T14:09:33+00:00

I have a very big array with car makes and models. I’ve already extracted

  • 0

I have a very big array with car makes and models. I’ve already extracted the makes into a separate array, but I am struggling to extract the models while also maintaining their association to the make.

Here is a sample of the array:

var dataa = new Array
        (
            ['Acura','','Integra','Mdx','Rl','Rsx','Slx','Tl','Tsx'],
            ['Aixam','','400','505','600'],
            ['Alfa romeo','','145','146','147','155','156'],
            ['Aston martin','','.','DBS','Db7','Db9']);

As you can see I have a multi-dimensional array with the car make (located at dataa[0][0]), then an empty value and then the model for this make.

I am using this code to to get the car makes:

This gives me the fist value of every nested array -> dataa[i][0]:

for (var i = 0; i < dataa.length; i++) {
  document.write(dataa[i][0] + "<br>");
}

My problems start HERE.

I CAN NOT extract all models and assign them to the proper car make. I have tried for-loop’s, loops with brakes, while loops and loops with conditional statements but I can’t do it.

Please give me some advice here. Would jQuery or some other technology 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-06-12T14:09:34+00:00Added an answer on June 12, 2026 at 2:09 pm

    Put a loop inside your loop.

    for (var i = 0; i < dataa.length; i++) {
        document.write("<h2>Starting new inner loop!</h2><br>");
        for (var j = 0; j < dataa[i].length; j++) {
            document.write(dataa[i][j] + "<br>");
        }
    }
    

    Now for every Array in the outer Array, you’re doing a separate loop.

    Here’s a demo

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

Sidebar

Related Questions

I have a very big constant array that is initialized at compile time. typedef
I have an element which may contain very big amounts of data, but I
I have a very big array stored in memory after reading a whole file
Hy, I have a very big question . I have an array like this
i have a very big array which is shared among many functions in many
I have a very large txt file javascript array - too big for me
I have a byte array that can be very big in size. I want
I have very very big html page/data. I need to fetch data under h1
I have a very big hadoop sequence file in the hdfs. what is the
I have a very big CSV file (1GB+), it has 100,000 line. I need

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.