title: How can i change an already clicked button, color, back to original when another button is clicked
body: <p>So what i basically want is when a button is clicked, it'll change the background-color to orange, and when i click on another button, i want the button that was clicked previously to change color to its original.</p>
  <pre><code>const subBtn = document.getElementById('submit');
  const card = document.getElementById('card');
  
  
  
  button.forEach(btn =&gt; {
      btn.addEventListener('click', e =&gt; {
          btn.style.backgroundColor = &quot;#7C8798&quot;;
          btn.style.color = 'white';
  
      })
  })
  
  
  subBtn.addEventListener('click', e =&gt; {
      subBtn.style.backgroundColor = 'white';
      subBtn.style.color = '#FC7614'
  });
  </code></pre>