app.js
/* append new user at the end in user list with EDIT & DELETE buttons */
append new user at the end in user list with EDIT & DELETE buttons
append new user at the end in user list with EDIT & DELETE buttons
function appendToUserTable(user) {
  $("#userTable > tbody:last-child").append(`
    <tr id="user-${user.id}">
      <td class="userData" name="firstname">${user.firstname}</td>
      <td class="userData" name="lastname">${user.lastname}</td>
      <td class="userData" name="placeOfBirth">${user.placeOfBirth}</td>
      <td class="userData" name="zipcode">${user.zipcode}</td>
      <td align="center">
        <button class="btn btn-success form-control" onClick="editUser(${user.id})" data-toggle="modal" data-target="#myModal")">Edit</button>
      </td>
      <td align="center">
        <button class="btn btn-danger form-control" onClick="deleteUser(${user.id})">Delete</button>
      </td>
    </tr>
`);
}
function appendToUserTable ( user ) { $ ( "#userTable > tbody:last-child" ) . append ( ` ${ user . id } ${ user . firstname } ${ user . lastname } ${ user . placeOfBirth } ${ user . zipcode } ${ user . id } ${ user . id } ` ) ; }
append new user at the end in user list with EDIT & DELETE buttons
append new user at the end in user list with EDIT & DELETE buttons