Ad

Write a function that modifies a User Object (should have the fields 'name', 'address', and 'age') to update their address.,,

Requirements:
-User object has 3 fields (name, age, address)
-User can be created with 1, 2, or all 3 params (args in order above)
-User can be updated with User.update(name, age, address)
-User values can be updated individually using the following methods:
---User.updateName(name)
---User.updateAge(age)
---User.updateAddress(address)

function User (name = "", age = "", address = "") {
    this.name = name
    this.age = age
    this.address = address
    this.updateName = function(name) {this.name = name}
    this.updateAge = function(age) {this.age = age}
    this.updateAddress = function(address) {this.address = address}
    this.update = function(name="", age="", address="") {
      this.name = name
      this.age = age
      this.address = address
    }
}