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 3949234
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:28:09+00:00 2026-05-20T01:28:09+00:00

I am not too familiar with javascript. Can someone please explain this construct to

  • 0

I am not too familiar with javascript. Can someone please explain this construct to me?

[{a:"asdfas"},{a:"ghdfh",i:54},{i:76,j:578}]

What does this construct declare? I can see that this is an array that consists of 3 elements, right? And every element in this array is a class, which is declared in JSON format, isn’t it? And I do not need to use any scripts to use JSON, do I?

  • 1 1 Answer
  • 1 View
  • 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-20T01:28:10+00:00Added an answer on May 20, 2026 at 1:28 am

    It’s simply an array composed of 3 elements. Each element is an object. The first one has the a key with associated ‘asdfas’ value. The second one i key with 54 value etc etc

    it could be built in this way :

    var arr = []; //[] <= array
    
    var first = {}; // {} <= object
    first.a = "asdfas"; // object.key = value, same by doing var first = {a:"asdfas"}
    arr.push(first); //pushing an object inside the array
    
    //arr status: [{a:"asdfas"}]
    
    var second = {};
    second.a = "ghdfh";
    second.i = 54;
    arr.push(second);
    
    //arr status: [{a:"asdfas"},{a:"ghdfh",i:54}]
    
    var third = {};
    third.i = 76;
    third.j = 578;
    arr.push(third);
    
    //arr status: [{a:"asdfas"},{a:"ghdfh",i:54},{i:76,j:578}]
    
    alert(arr[2].j) //third element of the array => object => key j => alerts j value 578
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Not too familiar with GSA here so hopefully someone can help me. Have a
Background: I'm coming from Java background so not too familiar with Javascript. We are
I'm not too familiar with Linux/Bash, so I can't really find the right terms
I'm not entirely too familiar with prototypes, and I'm sure this is the incorrect
Not too familiar with dtsx packages - can they be created/run outisde Visual Studio?
This is complicated. I'm not too familiar with Access and I am a programmer
This is some old code that I am not too familiar with : RequiredFieldValidator
I'm new to JavaScript and I'm not too familiar with the syntax. I want
I'm not too familiar with c++ and how instantiating objects work, so this is
I'm not too familiar with networking in JAVA but what i'm basically trying to

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.