Which of the following is a valid getter in an object?
get name() { return this._name; }
getter name() { return this._name; }
get: function() { return this.name; }
name.get { return this._name; }
This question is part of this quiz :
JavaScript Objects