Initial release

This commit is contained in:
Alex Dima 2016-06-09 19:25:58 +02:00
parent 90042b4f97
commit 896c60a8b9
60 changed files with 36730 additions and 2 deletions

View file

@ -0,0 +1,33 @@
"use strict";
function Person(age) {
if (age) {
this.age = age;
}
}
Person.prototype.getAge = function () {
return this.age;
};
function Student(age, grade) {
Person.call(this, age);
this.grade = grade;
}
Student.prototype = new Person();
Student.prototype.getGrade = function () {
return this.grade;
};
var s = new Student(24, 5.75);
//var age = s.
//delete s.age;
//s.getAge = function() { return {foo:"bar"}; };
//s.
//s.getAge().