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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:44:07+00:00 2026-05-16T16:44:07+00:00

I just heard about JavaScript objects and was wondering what they are (because I

  • 0

I just heard about JavaScript objects and was wondering what they are (because I cannot find any information out there) and what they are useful for.

I really just need help with that. Sorry I am a beginner.

  • 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-16T16:44:08+00:00Added an answer on May 16, 2026 at 4:44 pm

    Apart from the few primitive types (numbers, strings, booleans, null and undefined) everything is an object in JavaScript (even functions).

    Objects are basically containers of properties, which happen to be very useful for collecting and organizing data.

    One popular method to create objects is to use the object literal notation:

    var emptyObject = {};
    
    var myFirstObject = {
       'name': 'Bobby',
       'surname': 'Smith'
    };
    

    The quotes around property names are optional if the name would be a legal JavaScript identifier and not a reserved word. A property’s name can be any string. Objects can contain other objects, so they can easily represent trees or graphs:

    var myFlight = {
       'airline': 'Airline Name',
       'number': 'AN700',
       'departure': {
          'IATA': 'SYD',
          'time': '2010-09-04 23:10:00'
       },
       'arrival': {
          'IATA': 'LAX',
          'time': '2010-09-05 05:14:00'
       }      
    };
    

    JavaScript objects also happen to be a convenient hash table data structure. You could easily do the following:

    var myHashTable = {};
    myHashTable['name'] = 'Bobby';
    myHashTable['surname'] = 'Smith';
    alert(myHashTable['name'] + ' ' + myHashTable['surname']);
    

    This is definitely not an exhaustive answer, but I hope it gets you going in the right direction when doing further research.

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

Sidebar

Related Questions

I just found out about using label s in JavaScript, such as: for (var
I just heard about that x mod (2^32-1) and x / (2^32-1) would be
I just heard Joel & Jeff talk about Sender ID in their podcast number
I'm just curious to know about this.When i heard about Spring.net and tried some
I've just upgraded from MRI-1.8.7 to MRI-1.9.1 and heard about this lighthouse ticket which
I just recently heard of duck typing and I read the Wikipedia article about
Just curious. I heard something about the new G1GC addressing that latency problem. I
I have just heard that the iphone cannot do double natively thereby making them
When I heard about LESS, I originally thought that they're usually pre-processed into css
is there any HTTP-header to disable Javascript for a specific page? My website delivers

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.