This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Request{ | |
| //HTTP response status codes: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status | |
| async delete(url){ | |
| const deleteResponse = await fetch(url,{ | |
| method: "DELETE" | |
| })//Continues only after the promise has resolved | |
| //Since our method is deleting data |