title: JavaScript Firebase Database web Uncaught SyntaxError: Unexpected token with no reason
body: <p>First of all i want to say that i searched a lot but i have not found the reason of my error.</p>
  
  <p>I am working with firebase Database and i want to edit a specific child.
  I do it in this way in my html page:</p>
  
  <pre><code>  firebase.auth().onAuthStateChanged(function(user) {
                        if (user) {
                        var uid = user.uid;
  
                      const databases = firebase.database().ref().child('Utenti').child(uid).set({
                              if($('#email').val().length &gt; 8 ){
                              email: $('#email').val(), //email dal text input email ecc....
                              }
                              if($('#nome').val().length &gt; 5 ){
                              named : $('#nome').val(), 
                              }
                      tipologia : 'Utente normale',
                      uid : user.uid
                      });
  
  
                  };
  
          }); 
  </code></pre>
  
  <p>Now my <code>$('#email').val()</code> and my <code>$('#nome').val()</code> are the result of two different input area. So, once i click a button i call the event listener and i perform the action to edit the data in my specified node.</p>
  
  <p>But i get the error "Uncaught SyntaxError: Unexpected token (" and the line is <code>if($('#email').val().length &gt; 8 ){</code> and obiuously the next one is <code>if($('#nome').val().length &gt; 5 ){</code>.
  What happened?
  What is wrong with this code? Please do not mark as duplicated!</p>