Skip to content

[Lecture: Basic: Every Some] The result of exercise is returned PASSED although the solution is not correct  #208

@hungdao-testing

Description

@hungdao-testing

Hi all,
My solution for basic every-some is below, which is not correct; but I am not sure why the program returns PASSED

function checkUsersValid(goodUsers) {
    return function allUsersValid(submittedUsers) {
      return submittedUsers.every(user => goodUsers.includes(user))
    };
  }

  module.exports = checkUsersValid

Returned info
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions