title: Javascript firebase code results in "is not a function"
body: <p>error is SignUp is not a function, can't see why</p>
  <pre><code>    &lt;form&gt;
  
  &lt;label for=&quot;Email&quot;&gt;Email&lt;/label&gt;&lt;input type=&quot;text&quot; id=&quot;Email&quot;&gt;
  
  &lt;label for=&quot;Password&quot;&gt;Password&lt;/label&gt;&lt;input type=&quot;text&quot; id=&quot;Password&quot;&gt;
  
  &lt;button onclick=&quot;SignUp()&quot; id=&quot;SignUp&quot;&gt;SignUp&lt;/button&gt;
  
      &lt;/form&gt;
  
  
  
          &lt;!-- The core Firebase JS SDK is always required and must be listed first --&gt;
          &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.4/firebase-app.js&quot;&gt;&lt;/script&gt;
          &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.4/firebase-auth.js&quot;&gt;&lt;/script&gt;
  &lt;!-- TODO: Add SDKs for Firebase products that you want to use
       https://firebase.google.com/docs/web/setup#available-libraries --&gt;
  &lt;script src=&quot;https://www.gstatic.com/firebasejs/8.2.4/firebase-analytics.js&quot;&gt;&lt;/script&gt;
  
  
  &lt;script&gt;
    // Your web app's Firebase configuration
    // For Firebase JS SDK v7.20.0 and later, measurementId is optional
    var firebaseConfig = {
      apiKey: &quot;&quot;,
      authDomain: &quot;&quot;,
      projectId: &quot;&quot;,
      storageBucket: &quot;&quot;,
      messagingSenderId: &quot;&quot;,
      appId: &quot;&quot;,
      measurementId: &quot;&quot;
    };
    // Initialize Firebase
    firebase.initializeApp(firebaseConfig);
    firebase.analytics();
  &lt;/script&gt;
  
  &lt;script&gt;
    const auth = firebase.auth();
  &lt;/script&gt;
  
  &lt;script&gt;
    function SignUp() {
        var email = document.getElementById(&quot;Email&quot;);
        var password = document.getElementById(&quot;Password&quot;);
        const promise = auth.createUserWithEmailAndPassword(email.value, password.value);
    }
  &lt;/script&gt;
  
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>