/**
 * Sample project code
 */


class Person {
  constructor () {
    this.name = "annonymous"
    this.age = 20
  }

  hello () {
    return `Hello! I'm ${ this.name }! I'm ${ this.age } years old.`
  }

  get nextage () {
    return this.age + 1
  }
}

module.exports = {
  Person: Person
}
/**
 * Sample project code
 */


class Person {
  constructor () {
    this.firstname = ""
    this.lastname = ""
    this.age = 20
  }

  hello () {
    return `Hello! I'm ${ this.fullname }! I'm ${ this.age } years old.`
  }

  get nextage () {
    return this.age + 1
  }

  get fullname () {
    if (this.firstname == "" && this.lastname == "") return "annonymous"
    return this.firstname + " " + this.lastname
  }
}

module.exports = {
  Person: Person
}
Change Person.name to firstname and lastname
Change Person.name to firstname and lastname
