Closed sudarsangp closed 7 years ago
Example under special cases of the name property
Missing colon for the get function:
Actual:
var person = { get firstName() { return "Nicholas" }, sayName: function() { console.log(this.name); } }
Suggestion:
var person = { get: firstName() { return "Nicholas" }, sayName: function() { console.log(this.name); } }
Sorry misunderstood the example given. Please close this issue.
Example under special cases of the name property
Missing colon for the get function:
Actual:
Suggestion: