} Person.prototype.greet = function() { return 'Hello, ' + this.name; } function Employee(name, salary) { Person.call(this, name); this.salary = salary; } Employee.prototype = new Person(); Employee.prototype.constructor = Employee; Employee.prototype.grantRaise = function (percent) { this.salary = (this.salary * percent). toInt(); } class Person { var name; Person(this.name); greet() => 'Hello, $name'; } class Employee extends Person { var salary; Employee(name, this.salary) : super(name); grantRaise(percent) { salary = (salary * percent).toInt(); } }