-
Notifications
You must be signed in to change notification settings - Fork 12
Iochatbotweek11 #24
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?
Iochatbotweek11 #24
Conversation
| ]; | ||
|
|
||
|
|
||
| console.log(ioChatbot) |
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 remove your console logs before you push
| document.getElementById("output").value +="you : "+question+ '\n' +"computer : "+ response[0].output.sort((a, b) => b.length - a.length)[randomNumber]+ '\n' + '\n'; | ||
| } | ||
|
|
||
| } 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.
might want to move this logic up so that your program doesn't have to go through all the logic above in this scenario
| } | ||
|
|
||
| } else if( question === "show me a dog" ) { | ||
| dogpictures(); |
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 camel case your names
|
|
||
|
|
||
|
|
||
| function dogpictures(){ |
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.
camelcase for consistency i.e. dogPictures
No description provided.