-
Notifications
You must be signed in to change notification settings - Fork 12
chatBot 4 #29
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?
chatBot 4 #29
Conversation
chatbot.js
Outdated
|
|
||
| ]; | ||
|
|
||
| //console.log(); |
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.
Don't leave commented out lines in your code
chatbot.js
Outdated
|
|
||
| //console.log(); | ||
|
|
||
| function reply () |
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.
make sure to use indentation to make your code clear
chatbot.js
Outdated
| let filterType = null; | ||
| const output = chatbot.filter(item => item.input === question); | ||
| if(question === ''){ return false; } | ||
| appendQ (question) |
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.
there should be no space between your function name and (question)
chatbot3.js
Outdated
| ]; | ||
|
|
||
| /* | ||
| It should now look like this: |
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.
Please remove your commented out lines
chatbot3.js
Outdated
| let question = document.getElementById('input').value; | ||
| let filterType = null; | ||
|
|
||
| let answer = chatbot.filter(function(item){ |
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.
No need to make it into a long function, this can be done in one line as you did above
|
Should have your logic for all parts in one file and create a new PR for each assignment rather than have 3 copies of the file |
No description provided.