Answers for ".then for delete request"

6

js fetch delete

fetch('https://example.com/delete', {
  method: 'DELETE'
})
  .then(res => res.json())
  .then(data => {
    // Do some stuff...
  })
  .catch(err => console.log(err));
Posted by: Guest on July-14-2020

Code answers related to "Javascript"

Browse Popular Code Answers by Language