Conversation
HIPPIEKICK
left a comment
There was a problem hiding this comment.
Great job on implementing this holiday bot 🥳 Let's have a look at some feedback.
JavaScript
- Smooth flow of your chatbot, with appropriate prompts and responses ⭐
- Great job breaking the code into modular functions (greeting, showMoodOptions, etc.). This makes the chatbot’s logic easier to follow and maintain. 👏
Clean Code
- The code is generally well-organized with meaningful variable names, keep this up!
Keep up the good work 🥳
| const botReply = (msg) => { | ||
| setTimeout(() => showMessage(msg, "bot"), 500); | ||
| }; | ||
| const userReply = (msg) => { | ||
| showMessage(msg, "user"); | ||
| }; |
|
|
||
| // Functions goes here 👇 | ||
| // Variables | ||
| let questionNumber = 1; |
There was a problem hiding this comment.
Really good idea to keep track of the flow ⭐
Fannyhenriques
left a comment
There was a problem hiding this comment.
Wow! I loved your holiday-chat-bot! It really got me in the mood for a vacation! 😊
Everything works smoothly and the background image and all the emojis are a really nice touch! They really make the experience more fun! I also loved the inclusion of activity suggestions with links.
Your functions are well-structured, keeping the code clean and easy to follow. Great job!
Also, great work with the setTimeout, the conversation has an overall flow that feels very user-friendly. And - great move with the start-over-button! I wish I had thought of that in my own project! 😊
All in all, a fantastic chat-bot and great use of JavaScript! SUPER impressed with your work!
| botReply(`${choice} sounds fun! Are you ready to start planning your trip?`); | ||
|
|
||
| // Add suggestions based on the selected activity | ||
| let suggestions = ""; |
| setTimeout(() => { | ||
| inputWrapper.innerHTML = ` | ||
| <button id="start-over">Start Over</button> | ||
| `; |
Netlify link
https://holiday-bot.netlify.app/