previousTab() {
    const tabs = this.querySelectorAll('.web-tabs__tab');

    if (tabs[this.activeTab - 1]) {
      this.activeTab = this.activeTab - 1;
    } else {
      this.activeTab = tabs.length - 1;
    }
  }
// If previous tab exists, make it active. If not, make last tab active.
If previous tab exists, make it active. If not, make last tab active.
If previous tab exists make it active . If not make last tab active .
previousTab() {
    const tabs = this.querySelectorAll('.web-tabs__tab');
    if (tabs[this.activeTab - 1]) {
      this.activeTab = this.activeTab - 1;
    } else {
      this.activeTab = tabs.length - 1;
    }
  }
previousTab ( ) { const tabs = this . querySelectorAll ( '.web-tabs__tab' ) ; if ( tabs [ this . activeTab - 1 ] ) { this . activeTab = this . activeTab - 1 ; } else { this . activeTab = tabs . length - 1 ; } }
If previous tab exists, make it active.
If previous tab exists make it active .