Update the function deleteUser
to delete an existing user using the endpoint https://jsonplaceholder.typicode.com/users/<id>
. The function accepts the id
of the user to be deleted.
Log the message User deleted successfully. to the console if the request is successful. If the response is not OK, log the message Network response was not ok. to the console at the error level. If the request fails, log the error message in the format Error deleting the user: <error message>