Skip to content

Conversation

@iwaseem
Copy link

@iwaseem iwaseem commented Oct 7, 2019

No description provided.

chatbot.js Outdated

];

//console.log();
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 commented out lines in your code

chatbot.js Outdated

//console.log();

function reply ()
Copy link
Contributor

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

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:
Copy link
Contributor

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

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

@saraalmouaswas
Copy link
Contributor

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

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