title: Using push() in Firebase not working
body: <p>Jumping into firebase. It seems simple but is breaking with the push(). Thanks for any help.</p>
  
  <p>ERROR: Uncaught TypeError: firebase.database(...).push is not a function</p>
  
  <pre><code>function submitClick() {
  
  var mainText = document.getElementById("mainText").value;
  var mainButton = document.getElementById("mainButton");
  
  // Get a reference to the database service
  var database = firebase.database();
  
  
  // alert(messageText);
  
  firebase.database().push().set(mainText);
  
  }
  </code></pre>