title: Class is not defined Javascript
body: <p>So I am trying to include 'Flop' Class into html file, there is app.js content: </p>
  
  <pre><code>class Flop {
  
      size;
      difficulty;
  
      constructor() {
          console.log("Created");
      }
  
      start() {
          var canvas = document.getElementById("flop");
          var content = canvas.getContent("2d");
      }
  
      setup() {
  
      }
  }
  </code></pre>
  
  <p>And there is index.html file: </p>
  
  <pre><code>&lt;html&gt;
  
  &lt;head&gt;
      &lt;title&gt;Flop&lt;/title&gt;
      &lt;meta charset="UTF-8" /&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;canvas id="flop"&gt;&lt;/canvas&gt;
  
      &lt;script src="main/app.js"&gt;&lt;/script&gt;
  
      &lt;script&gt;
          var flop = new Flop();
      &lt;/script&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>
  
  <p>and what I got in a console that Flop is not defined, the question is what to do if I actually want to use this class and how should I include it</p>