Skip to content

Conversation

@inanfatih
Copy link

No description provided.

@epq
Copy link
Collaborator

epq commented Sep 25, 2019

Overall, good job - all the functionality is there, and you did a good job handling several inputs and outputs with different capitalizations.

console.log(question);

// statement to answer the question based on the index of the question.
if (
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works just fine, but you can simplify it.
Since your question variable is converted to lowercase on line 15, you don't need to continue to call toLowerCase() on this variable.

Good job using map. You can save the result of chatInputsOutputs.inputs.map(v => v.toLowerCase() in a variable since you call this twice. It would also be easier to read.

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