title: How can I change the color whenever I click the button?
body: <p>When I click the button, I hope the body color is changed whenever I click</p>
  <p>But It's only changed once.   If I click again , the color is not changed.</p>
  <p>I don't know what did I have mistake on the code?</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>let click = document.querySelector('.click');
  let random_color = "#" + Math.floor(Math.random() * 16777215).toString(16);
  
  
  click.addEventListener('click', () =&gt; {
    color();
  })
  
  function color() {
    document.body.style.backgroundColor = random_color;
  }</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 90vh;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="click"&gt;click&lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>