yirano / drawFromAHat

A classic random name picker created by the help of the Github community.
https://yirano.github.io/drawFromAHat/src/
11 stars 16 forks source link

Added multiple input feature #21

Closed MohamedYasser97 closed 5 years ago

MohamedYasser97 commented 5 years ago

Now the user can either enter names one by one, or separated by commas. I added an instruction text in the results box telling the users their options. I took the input string, converted it into an array after delimiting it with commas then iterated through that array and created an

  • for each name. Also I've handled empty entries between commas.

  • yirano commented 5 years ago

    @MohamedYasser97 you're wicked fast! It works like magic!!

    MohamedYasser97 commented 5 years ago

    @yirano Thanks a lot for your kind words!! This is a good exercise and I think I'm ready for the next challenge 😀😀