title: Uncaught SyntaxError: missing ) after argument list - JavaScript
body: <p>I am getting this error: </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: missing ) after argument list</p>
  </blockquote>
  
  <p>this is my JavaScript Code:</p>
  
  <pre><code>    saveButton.addEventListener("click" function() {
      const textToSave = inputTextField.value;
      console.log("I am going to save " + textToSave + " to Firestore");
      docRef.set({
          quote: textToSave
      }).then(function() {
          console.log("Status saved!");
      }).catch(function (error) {
          console.log("Got an error: ", error);
      });
  });
  </code></pre>
  
  <p>Thanks for your help!</p>