Confused with ECMAScript Language Specification Function Calls section
- by Ding
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:
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!