Confused with ECMAScript Language Specification Function Calls section

Posted by Ding on Stack Overflow See other posts from Stack Overflow or by Ding
Published on 2010-04-29T15:49:35Z Indexed on 2010/04/29 15:57 UTC
Read the original article Hit count: 496

Filed under:

Hi,

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!

© Stack Overflow or respective owner

Related posts about JavaScript