Even I finished book and couple of VERY simple project task was pretty cool. I found fine solutions never menthiond befor in my educational material.
Try find solution using set() method
Read this: https://docs.codewars.com/training/troubleshooting
And this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
And maybe use a better name for your vars, str is an array of strings, not a string. Your code (if it worked) isn't case insensitive either.
str
This comment is hidden because it contains spoiler information about the solution
Loading collection data...
Even I finished book and couple of VERY simple project task was pretty cool. I found fine solutions never menthiond befor in my educational material.
Try find solution using set() method
Read this: https://docs.codewars.com/training/troubleshooting
And this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/includes
And maybe use a better name for your vars,
str
is an array of strings, not a string. Your code (if it worked) isn't case insensitive either.This comment is hidden because it contains spoiler information about the solution