Manishak798 / Dive-to-Dev_Hacktoberfest23

Dive into development with 'Dive to Dev' – your go-to open-source hub for sharing and collaborating on web dev and software projects during Hacktoberfest 2023. Join the coding wave now! 🚀Hacktoberfest 2023
https://manishak798.github.io/Dive-to-Dev_Hacktoberfest23/
MIT License
27 stars 54 forks source link

Validating user input #6

Closed usman-rizwan closed 1 year ago

usman-rizwan commented 1 year ago

I've added the check for an empty input at the beginning of the function. If the input is empty, it will show an alert and return, preventing the rest of the code from executing