The assignment was to build a chat bot with eventlisteners for the form submit event. The value from the input should be stored and posted as a message from the user. The chat bot app should progress to the next question. There was a starter code for HTML, CSS and Javascript. The starter code included the first message from the bot. Background photo: Mitchell Luo, Unsplash, https://unsplash.com/photos/FWoq_ldWlNQ?utm_source=unsplash&utm_medium=referral&utm_content=creditCopyText Illustrations: https://undraw.co/illustrations
To approach the problem a demo app from Technigo and previous students were used as inspiration. To understand how the chat bot could work other students' code was first implementet and then refactored with additional functions and eventlisteners. Information and code snippets from various blogs and forums were also used and some guidance was needed from a more experienced coder to solve some of the more complicated functions. Future iterations of the chat bot will include a more user friendly experience for a mobile user when it comes to scrolling.