Solution: Create a Button to Delete Unanswered Questions
Let's explore the solution to create a button to delete unanswered questions.
We'll cover the following
To solve this challenge, we created a delete button that has two functions that invoke an onclick()
event. These functions delete our unanswered questions and reload the web page.
Solution
The code widget below shows the complete solution to the exercise where a button is created that deletes the unanswered questions by calling DELETE
API, that we have already created.
Get hands-on with 1400+ tech skills courses.