I’m struggling with the problem when trying to use the fecth() in JS.
I’m using the Mock API to practice with the fetch api. I defined a handleDeleteJob() function for onclick event in button to remove the DOM element and send a “DELETE” method to delete data. However it just work with the id when it is a number. With the id is a string, it’ll show that ‘id’ is not defined
I have try many times to fix this problem but I can not figure out what is the problem come from?