title: How to fix this "Syntax error:Unexpected identifier"?
body: <p>I am trying to make an js contact app program that has to save a Contact number and phone and I get this error &quot;Unexpected identifier at line 61&quot;.</p>
  <p>I don't know where seems to be the ending point, how can I solve this? Here is my code:</p>
  <pre><code>class Contact {
      constructor(props) {
          this.state = {items:this.props.contacts};
          this.getContacts(); }
       getContacts = () =&gt; {
          fetch('http://dev.samples.com/getcontacts.php')
              .then(rsp=&gt;rsp.json())
              .then(response =&gt;{
                  this.setState({items:response.data});
                  console.log(response.data)
              })
      }
  }
      this.setState({items:response.data});
       handleChange(e);
         if(e.target.name == 'name'){
             this.setState({currentContact : { name: e.target.value}})
         }
         if(e.target.name == 'email'){
             this.setState({currentContact : { email: e.target.value}})
         }
         if(e.target.name == 'phone'){
             this.setState({currentContact : { phone: e.target.value}})
         }
         if(e.target.name == 'notes'){
             this.setState({currentContact: {notes: e.target.value}});
         }
          if(e.target.name == 'id'){
              if(e.target.value != undefined || e.target.value != ''){
                  this.setState({currentContact : { id: e.target.value}});
                  console.log(e.target.value);
              }
          }
          class Prop {
          constructor(props){
          this.state = {currentContact: this.props.currentContact};
          this.currentContact = this.props.currentContact;
          this.id = this.props.currentContact.id;
          this.handleSubmit = this.handleSubmit.bind(this);
          this.handleChange = this.handleChange.bind(this);
      }
  }
   function save() 
  { 
  var x = button.SaveContact();
  var y =  document.open(&quot;contact app.html&quot;); 
  x.save(contact.txt);
  button.Save.appendChild(1);
  } 
  var Name='Stefan',
  Phone=&quot;078345678&quot;
  function doSaveAs(){
      if (document.execCommand){
          document.execCommand(&quot;SaveAs&quot;)
      }
      else {
          alert(&quot;Save-feature available only in Internet 5.x.&quot;)
      }
  }
  function doSaveAs(button)
  let g=&quot;Elton&quot;
  let p = &quot;0767554433&quot;
  function save(g,p);
  </code></pre>
  <p>Also I get this error too when I try to save the contact</p>
  <pre><code>:&quot;contact app.html?id={this.id}%2F&amp;name=Stefan&amp;phone=0785678901:31 Uncaught ReferenceError: doSave is not defined
  ?
      at HTMLInputElement.onclick (contact app.html?id={this.id}%2F&amp;name=Stefan&amp;phone=0785678901:31)&quot;?
  </code></pre>