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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T16:30:41+00:00 2026-05-14T16:30:41+00:00

What is the difference of calling function like: testCall: function() and function testCall() in

  • 0

What is the difference of calling function like:

testCall: function() and function testCall() in jQuery ?

Update:

Questions: Does usage of one over the another have some performance issues related to it OR it really does not matter which one you are using ?

Update 2

Also other thing that I noticed that whenn I am defining function using testCall: function() and I call it using this.testCall() it works fine and am able to call it in any other function.

But when I am using function testCall() and I try to call it using testCall() in another function than I am getting errors and am not able to call it. Is this possible or there could be some other reason for the errors ?

  • 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-14T16:30:42+00:00Added an answer on May 14, 2026 at 4:30 pm

    In this example:

    testCall: function()
    

    testCall is now a function available on the object you’re in, like this: object.testCall() It can access other functions, properties, etc inside this object if it needs to.

    In this version:

    function testCall()
    

    testCall is just a globally available method, not scoped to the object or plugin, whatever you’re dealing with, you can call it from anywhere, like this: testCall()

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

Sidebar

Related Questions

Will there be a difference between the following two ways of calling a function
In Fortran, a clear difference exists between function and subroutine: functions return one value,
My problem is following, I have a function which takes one function as a
I have a function that returns a pointer to an object. Like this: class
I'm having a problem with calling a function in a different class in QT
Is there any difference between calling len([1,2,3]) or [1,2,3].__len__() ? If there is no
what is the difference between calling a mapreduce job from main() and from ToolRunner.run()
I'm wondering what's the actual difference between calling Thread.Sleep(1) and calling SwitchToThread (if we
Given a BehaviorSubject, what is the practical difference between calling all of these different
delegate void DelegateTest(); DelegateTest delTest; Whats the difference between calling delTest.Invoke() and delTest() ?

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.