- used Free Dictionary API to fetch data from server
- JS allows catch error if a
word
wasn't foundtry {} catch()
block - used
innerHTML
to display the meaning and pronunciation - if the word isn't found then an error message is displayed
- the dictionary allows to get the meaning of english words and their pronunciation
- handle error if the search word doesn't exist and display information message word
The word was not found
- if
input
search box is empty then an error message is displayed - displayed
throbber loader
while fetching data from server - click here to try => English Dictionary