Skip to content

Conversation

@inanfatih
Copy link

No description provided.


const randomNuberGenerator = () => Math.floor(Math.random() * 3);

console.log(chatInputsOutputs);
Copy link
Contributor

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()];
Copy link
Contributor

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() {
Copy link
Contributor

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) {
Copy link
Contributor

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.

@inanfatih
Copy link
Author

corrections made

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants