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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T14:07:31+00:00 2026-06-02T14:07:31+00:00

i want to learn javascript object, i spend time on the internet and learn

  • 0

i want to learn javascript object, i spend time on the internet and learn about the javascript object a bit and i am confused what is use of object and how to build your own object in javascript. i also see some javascript function in which they use their own custom object. i have some code for example.

var animationSections = {   
        'intro': 0,
        'over': 200,
        'around': 1600,
        'through': 3500,
        'share': 5000
    };

i copy above given code from one javascript file it is for animation and they use this object.

startAt: 0+animationSections.over

now my question will come up why we use animationSections.over rather we can use ‘200’

  • 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-02T14:07:35+00:00Added an answer on June 2, 2026 at 2:07 pm

    It would be good to have some object oriented programming background.So you can understand much more better here.An OBJECT has a property.In this animationsector is an Object.Instead of saying 200 directly, represent it via Object.property mechanism.This will make your code much more cleaner and easy to maintain.Also, after sometime, when you revisit the code after sometime, it will be bit difficult to remember or map why 200 is used.But instead, if maintain an object and say ‘over’, then you can be able to identify its significance.it represents the context.Hope this will help you.

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

Sidebar

Related Questions

i want to learn GCD on my own app-project and i've got problem with
I want to learn complete and authoritative knowledge about charset and encoding. That's better
I am trying to build a simple calculator to learn javascript/jquery but seem to
I want to learn JavaScript nicely and become very good at it. I want
I'm new to development and want to learn JavaScript and C#, which one do
I started to learn MVC and in conjunction want to use the KnockOut.js I
I'm trying to learn how to apply basic object oriented concepts to Javascript. Here,
Please no jQuery code, as I want to learn javascript first and foremost. I
I am completely new to javascript, but I want to learn it rather than
I am trying to learn more about Javascript, I have been coding with PHP

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.