-
Notifications
You must be signed in to change notification settings - Fork 12
Chatbot4 #26
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?
Chatbot4 #26
Conversation
|
|
||
| const randomNuberGenerator = () => Math.floor(Math.random() * 3); | ||
|
|
||
| console.log(chatInputsOutputs); |
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 comments in your code
main.js
Outdated
|
|
||
| //answer based on the option selected in the radio button | ||
| const answerRandom = item => { | ||
| return item[0].outputs[randomNuberGenerator()]; |
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 mistake
main.js
Outdated
| dogLink = assignDogLink(); | ||
| } | ||
|
|
||
| getPhoto(assignDogLink, function() { |
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.
I think you have duplication of logic here, why don't you just use getPhotos directly and assign to a variable?
main.js
Outdated
| return getPhotos(); | ||
| }; | ||
|
|
||
| function getPhoto(aa, assignDogLink) { |
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.
what is aa? that parameter is not being used.
|
corrections made |
No description provided.