We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
//Define a functional object to hold persons in javascript var Person = function (name) { this.name = name; };
//Add dynamically to the already defined object a new getter Person.prototype.getName = function () { return this.name; };
//Create a new object of type Person var john = new Person("John");
john. // Hint here only shows name, not getName() function. On reloading, it shows up.
The text was updated successfully, but these errors were encountered:
Update to latest tern - fixes issue #3
bef501f
This was fixed in tern, which I just updated to. ternjs/tern@ea47748
Sorry, something went wrong.
Merge pull request #3 from dloverin/more-tern
fcd7782
More tern
eztierney
No branches or pull requests
//Define a functional object to hold persons in javascript
var Person = function (name) {
this.name = name;
};
//Add dynamically to the already defined object a new getter
Person.prototype.getName = function () {
return this.name;
};
//Create a new object of type Person
var john = new Person("John");
john. // Hint here only shows name, not getName() function. On reloading, it shows up.
The text was updated successfully, but these errors were encountered: