I have created a method, here I have tried to use indexOf() and includes() both. But i am getting an error message like " Object doesn't support property or method 'includes' ". Even i have tried to run both IE and Chrome as well, but getting same error. If any one knows please help me.
0
votes
stris not a String, it's an Object. I'm fairly confident thatconsole.log(str+'......')outputs[Object object]..........- Jeremy Thille