Code0Em / lingua-sonnet

A web application to search word definitions, pronunciations and usage in poetry
MIT License
0 stars 1 forks source link

JS: Create function which resets count (for fetch function to Poetry API). #20

Closed Code0Em closed 9 months ago

Code0Em commented 9 months ago

Create function (with an event listener) which resets the fetch function count, when the user selects the generate poem button (so that new random poems can be generated/in case on the first round, no random button is found with the user's word).

Code0Em commented 9 months ago

Incorporated this into existing function for DRY code.