@Ejiroghene/

ThistleObviousRegression

Nodejs

No description

fork
loading
Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
const olderPerson = 'Jane';
const Jane = new Person ('Jane', 16);
function Person(name, age) {
this.name = name;
this.age = age;
  Person.prototype.isLegalDriver = function() {
    if (this.age >= 16) {
      return true;
    }
  }
}
Jane.isLegalDriver();
node v10.16.0