DEV Community

Cha Yang
Cha Yang

Posted on • Edited on

An attempt at making a chatbox

Over the weekend, I wanted to work with forms a bit more and so I decided to make a little chatbox.

Alt Text

You're able to ask a question on the form and get an answer printed below the form. It just takes the user input and sees if that input includes a question that our chatbox can answer. If it exists, then it prints out the answer below the form.

Alt Text

Right now, it's only able to answer two questions but it can answer many more if I work on it more. In conclusion, I learned more about how 'submit' and 'forms' work now.

Top comments (0)