updated(changedProperties) {
    changedProperties.forEach((oldValue, propName) => {
      if (propName === "type" && this[propName] === "science") {
        this.myIcon = "beaker";
      }
    });
  }
// this allows you to react to variables changing and use javascript to perform logic
this allows you to react to variables changing and use javascript to perform logic
this allows you to react to variables changing and use javascript to perform logic
updated(changedProperties) {
    changedProperties.forEach((oldValue, propName) => {
      if (propName === "type" && this[propName] === "science") {
        this.myIcon = "beaker";
      }
    });
  }
updated ( changedProperties ) { changedProperties . forEach ( ( oldValue , propName ) => { if ( propName === "type" && this [ propName ] === "science" ) { this . myIcon = "beaker" ; } } ) ; }
this allows you to react to variables changing and use javascript to perform logic
this allows you to react to variables changing and use javascript to perform logic