-
Notifications
You must be signed in to change notification settings - Fork 12
Week11 chatbot #27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Week11 chatbot #27
Conversation
| button { | ||
| font-family: Helvetica; | ||
| font-size: 10pt; | ||
| /*width: 92px;*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always delete commented out code
| font-size: 10pt; | ||
| /*width: 92px;*/ | ||
| } | ||
| textarea { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
indenting is a big deal when css gets really big, make sure that your indentations are always proper
| */ | ||
|
|
||
| const findSimillarQuestion = givenInput => (item) => { | ||
| // return item.input.toUpperCase().includes(givenInput.toUpperCase()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same comment for deleting commented out code
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also why are you no longer using toUpperCase?
|
|
||
|
|
||
| // repaly function | ||
| const replay = () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
spelling
| bot = detectedQuestion.output[rndmNumber]; | ||
| } | ||
|
|
||
| } else if (question == "show me a dog") { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good if you abstracted this further and instead of checking specifically for these 2 strings you adding these questions as part of the data array
No description provided.