title: Store CSS value in JavaScript variable
body: <p>My CSS</p>
  
  <pre><code>.h1-modified{
      color: green;
  }
  </code></pre>
  
  <p>My JavaScript file</p>
  
  <pre><code>var h1Modified = [HERE IS SOME CODE MISSING];
  </code></pre>
  
  <p>I want to store the color of the html class <code>.h1-modified</code> in the JavaScript variable <code>h1Modified</code>.</p>
  
  <p>If it works <code>alert(h1Modified);</code> outputs <code>green</code>.</p>
  
  <p>PROBLEM: <code>.h1-modified</code> isn't assigned to any HTML element. I have to access the CSS file directly.</p>