It looks like you're assigning the ternary operator to a variable. Why is that? Is it meant to be an arrow function. I also agree, you would want to just use true/false without the quotes.
When I first came to CodeWars, I was completely stumped. I have come back a few weeks later, after practicing with Javascript for hours each day and now I've done several of them. I say this to say, give it time. Even seasoned programmers get stuck on problems.
It looks like you're assigning the ternary operator to a variable. Why is that? Is it meant to be an arrow function. I also agree, you would want to just use true/false without the quotes.
Agreed. This answer is concise but not correct.
When I first came to CodeWars, I was completely stumped. I have come back a few weeks later, after practicing with Javascript for hours each day and now I've done several of them. I say this to say, give it time. Even seasoned programmers get stuck on problems.