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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T22:49:56+00:00 2026-05-22T22:49:56+00:00

I have found a JavaScript gallery . When I view the JavaScript code, I

  • 0

I have found a JavaScript gallery.

When I view the JavaScript code, I really don’t understand how to write code in this style. What is the style called? Where can I find documents related to it?

Note: what i want to know is the way that define Class in this code

(function (){ … })(window)

what is style ?

  • 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-22T22:49:57+00:00Added an answer on May 22, 2026 at 10:49 pm
    • jQuery.com

      Based on your question, it seems you’re not familiar with jQuery. jQuery is a JavaScript framework written in JavaScript. It is most useful for it’s selector/filter capabilities, being able to pull objects of objects using something like $('div'); (or jQuery('div');), which would pull all the divs from the page. Using dot notation, you can perform methods on those returned objects.

    • (function (){ ... })(window)…

      is both an unnamed function definition and call, passing in the window object. It’s sort of like function foo (){...} foo(window), only you don’t store the definition in variable foo and you need to wrap the definition in parentheses for syntax recognition in order to call it with the trailing parentheses.

    For more advanced JavaScript topics, google closures.

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

Sidebar

Related Questions

I have found this in a JavaScript source code file: function getElementsByClass(_0x62cbx2, _0x62cbx3, _0x62cbx4)
In this blog, http://www.bswebdev.com/2008/12/javascript-change-input-box-type-to-password/ I have found the following snippets for fixing change input
I have found the following javascript code to get browser window size and it
I have found utilities that can compress html, javascript, and css files individually. However,
Does Javascript supports Sets(list with unique objects only) ? I have found this link
I usually do not have difficulty to read JavaScript code but for this one
I've done some research into server push with javascript and have found the general
Wondering how to open many new windows with Javascript. I have found plenty of
I'm building a javascript-powered gallery on the iPad that can display both images and
This script I have found on StackOverflowe only... <!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.01

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.