title: Function Param not defined
body: <p>Why isn't my param working?</p>
  
  <pre><code>function myFunc(e){
    e = e || 'add' || 'remove';    
    document.body.classList.e('hide');
  }
  myFunc(remove);
  myFunc(add);
  </code></pre>
  
  <p>if was trying to this</p>
  
  <pre><code>function spinner(e){
  
        let $spinner = document.querySelector('.isolador_spinner');
  
        if ( e === 'remove' ){
          $spinner.classList.remove('hideSpinner');
        } else if ( e === 'add' ) {
          $spinner.classList.add('hideSpinner');
        } else {
          console.log('e was not defined');
        }
  
      }
  </code></pre>
  
  <p>It claims e is not a function</p>