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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:12:02+00:00 2026-05-14T14:12:02+00:00

I am reading ECMAScript Language Specification Function Calls section Can someone rephrase or detailed

  • 0

I am reading ECMAScript Language Specification Function Calls section

Can someone rephrase or detailed explains the following sentense for me?

The production CallExpression :
MemberExpression Arguments is
evaluated as follows:

  1. Evaluate MemberExpression.

let’s take this code as an example.

var john = { 
  name: 'John', 
  greet: function(person) { 
    alert("Hi " + person + ", my name is " + this.name); 
  } 
}; 

john.greet("Mark");

Take above code as an example, what does production CallExpression mean? what is MemberExpression in this case, john.greet?

Thanks!

  • 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-14T14:12:02+00:00Added an answer on May 14, 2026 at 2:12 pm

    The MemberExpression is john.greet. Basically what it’s saying is: Step 1: Figure out what function to call. 🙂 The john part is important, because it comes into it later.

    Here’s the complete quote from the most recent specification (your link is to the 3rd edition, which has been superceded by the 5th edition; this didn’t change much though):

    1. Let ref be the result of evaluating MemberExpression.
    2. Let func be GetValue(ref).
    3. Let argList be the result of evaluating Arguments, producing an internal list of argument values (see 11.2.4).
    4. If Type(func) is not Object, throw a TypeError exception.
    5. If IsCallable(func) is false, throw a TypeError exception.
    6. If Type(ref) is Reference, then

        a. If IsPropertyReference(ref) is true, then

          i. Let thisValue be GetBase(ref).

        b. Else, the base of ref is an Environment Record

          i. Let thisValue be the result of calling the ImplicitThisValue concrete method of GetBase(ref).
    7. Else, Type(ref) is not Reference.

        a. Let thisValue be undefined.
    8. Return the result of calling the [[Call]] internal method on func, providing thisValue as the this value and providing the list argList as the argument values.

    As you can see, john comes into it again at 6(a) because the expression is a property reference, so the this value is john (rather than the global object, as it would be if you called this not through a property reference).

    If you’re reading the spec, I do recommend reading the newest one instead of the older one (no HTML version yet). I’m afraid the prose is no less turgid, though. 🙂

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

Sidebar

Ask A Question

Stats

  • Questions 405k
  • Answers 405k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer This is not really an answer, but I feel so… May 15, 2026 at 5:49 am
  • Editorial Team
    Editorial Team added an answer Here's an article explaining when to use fastcall. It actually… May 15, 2026 at 5:49 am
  • Editorial Team
    Editorial Team added an answer Let the shortcut execute a batch file (.cmd), that Sets… May 15, 2026 at 5:49 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.