fack2 / Dictionary-Giphy-App

0 stars 1 forks source link

Handling empty inputs #19

Closed ameentalahmeh closed 5 years ago

ameentalahmeh commented 5 years ago

You should be handling the empty input that can be by an ignorant user. one of the simple ways (alert) through :

if (input !== ' ') { Here: Do your code } else {Here: Do alert that tells the user the input is empty }

See the error response on below pic: Screenshot from 2019-07-04 09-33-55

sulieman1 commented 5 years ago

issue fixed! you can now see a message if you leave the input field empty @ameentalahmeh

ameentalahmeh commented 5 years ago

Great work Dictionary-Giphy-App :+1: