title: use an HTML button to invert a bool function?
body: <p>Beginner here, go easy on me, I have a simple problem, but I keep getting errors. 
  My code is very simple, all I want is for this button to invert my bool so that different content can pull from that bools state to change certain content on the fly. However, when the button is actually clicked I get this error in the console:</p>
  
  <pre><code>"Uncaught ReferenceError: Br1c1 is not defined at HTMLButtonElement.onclick (File.html:32)"
  </code></pre>
  
  <p>line 32 is the line where my button is defined. </p>
  
  <p>All I want is the button to invert my bool function. </p>
  
  <pre><code>&lt;script&gt;
     boolean Br1c1 = "true";
  &lt;/script&gt;
  
  &lt;button class="button" id="r1c1" onclick="return Br1c1 = !Br1c1;"&gt;&lt;/button&gt;
  </code></pre>