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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T23:21:15+00:00 2026-05-10T23:21:15+00:00

The ECMA standard defines a hidden, internal property [[Call]] , which, if implemented, mean

  • 0

The ECMA standard defines a hidden, internal property [[Call]], which, if implemented, mean the object is callable / is a function.

In Python, something similar takes place, except that you can override it yourself to create your own callable objects:

>>> class B: ...     def __call__(self, x,y): print x,y ... >>> inst = B() >>> inst(1,2) 1, 2 

Is there any similar mechanism available in standard JavaScript? If not, what about any of the current JavaScript implementations?

  • 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. 2026-05-10T23:21:16+00:00Added an answer on May 10, 2026 at 11:21 pm

    As far as I know it’s not possible. It is supposed to be an internal property of an object and not exposed to the script itself. The only way I know is to define a function.

    However, since functions is first class citizens you can add properties to them:

    function myfunc(){   var myself = arguments.callee;   myself.anotherfunc(); }  myfunc.avalue=5;  myfunc.anotherfunc=function(){   alert(this.avalue); }  myfunc(); //Alerts 5 myfunc.anotherfunc(); //Alerts 5 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I mean that of the built-in ECMA objects: String, Number, Object, Function, RegExp, Error,
From http://www.jibbering.com/faq/faq_notes/closures.html : Note: ECMAScript defines an internal [[prototype]] property of the internal Object
In JavaScript what sort of inheritance do you favour? The ECMA standard is to
I know that the ECMA Script specification does not specify which algorithm to use
Can someone tell me since which ECMA version the IN operator is available and
According to the ECMA-262 a native object object in an ECMAScript implementation whose semantics
The ECMA standard for the .NET Common Intermediate Language has been updated three times.
What is the correct output (meaning correct by the ECMA standard) of the following
I've been messing around with the ECMA-262 standard ( ECMAScript Language Specification, 3rd edition,
I know both languages are from the same ECMA-262 standard. It seems that the

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.