Hi I'm currently making a simple version of a chatbot, but I have some issues with my code. I want to check if the user input is equal to a value in my array. What I currently have looks like this:
var digibord = [
{
name: ["digibord","smartboard","schoolbord"]
}
]
function handleMessage(message) {
if (message.includes(digibord)) {
Digibord();
}
}
As you can see I have little experience with javascript so I could use some help...