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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:03:23+00:00 2026-06-01T10:03:23+00:00

i am new in javascript and i have to understand an appcelerator project. in

  • 0

i am new in javascript and i have to understand an appcelerator project. in appcelerator we need to code in java script.

var winForm = (function() {

    var API = {};

    API.list = [
        {
            title:'title1', hasChild:true, color:'#9B0B0B',font:'font'
        },
        {
            title:'title2', hasChild:true, color:'#9B0B0B',font:'font'
        },
        {
            title:'title3', hasChild:true, color:'#9B0B0B',font:'font'
        }
    ];//end winList

    return API;
})(); //end 
module.exports = winForm;
  1. what type of function is this?
  2. what is this ‘{}’ initialization?
  3. what we are doing in API.list?
  4. how to call this function and list.
  5. what is this exports?

Sorry for asking so much questions in one post.

  • 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-01T10:03:24+00:00Added an answer on June 1, 2026 at 10:03 am
    1. It’s an anonymous function declared to create scope.
    2. It creates an empty object. It has no properties, but it is defined.
    3. list is being set to an array (that’s the [ ... ] notation) consisting of 3 objects. Each object has 4 properties, title, hasChild, color, and font, with the respective values.
    4. You cannot call this function explicitly, it’s declared, run, and the result is stored in the variable winForm (which is then stored in module.exports).
    5. Some property on the module object, whatever that is.

    You should take the time to learn more about how javascript works. I recommend http://javascript.info/ as a great ramp up.

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

Sidebar

Related Questions

I have used Javascript onlaod like this: function check() { var pic = new
I have some javascript code (within an object) : toggle: function() { var me
I have opened a new window with JavaScript: var newwin = window.open('','preview','width=600,height=500'); Now I
I have some code that dynamically creates a new button through JavaScript that when
I have the following javascript : var MyObject = (function() { function Setup(args) {
I have the following JavaScript (I'm using jQuery): function language(language) { var text =
I have a scenario where a javascript function creates a new span element in
I have an iframe Facebook application (using Facebook's new JavaScript API) that needs to
I'm quite new to javascript but have undertaken a task to get better aquainted
I am new to JavaScript so please be understanding of my situation. I have

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.