Logical error in JS

Yes, @danpetroski

If you are talking about lasjorg’s improvised problem:

‘Work’ should be one of the solutions that satisfies that logic!

In the case of these two rules, they’re testing much the same thing. Here’s what I’d meant when i asked you to spell out the rules as you understand them:

  1. The fourth item (either fourth character in a string, or fourth element in an array) is the letter “k”.
  2. The string or array must be greater than three characters long (if it weren’t, the last test would have failed).
  3. The letter “W” must be somewhere in this thing,
  4. The letter “o” must be second (this is very similar to test 1, expressed a different way).

Being able to verbalize the conditions indicates an understanding of them.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.