portfolio/src/main/webapp/script.js
/** Calls server to delete the task. */
Calls server to delete the task.
Calls server to delete the task .
function deleteTask(id) {
  const params = new URLSearchParams();
  params.append('id', id);
  fetch('/delete-comment', {method: 'POST', body: params});
}
function deleteTask ( id ) { const params = new URLSearchParams ( ) ; params . append ( 'id' , id ) ; fetch ( '/delete-comment' , { method : 'POST' , body : params } ) ; }
Calls server to delete the task.
Calls server to delete the task .