Can somebody explain to me how this works
I don't understand how validFields (this target to input element);
//check Fields
Customer.prototype.checkFields = function () {
  name.addEventListener("blur", this.validFields);
  course.addEventListener("blur", this.validFields);
  author.addEventListener("blur", this.validFields);
};
//valid Fileds
Customer.prototype.validFields = function () {
  if (this.value === "") {
    this.classList.add("invalid");
    console.log(this);
  } else if (this.value !== "") {
    this.classList.add("valid");
  }
};
 
     
    