Skip to content

Annalyn's Infiltration task 2 #2696

Closed
Closed
@codemaoz90

Description

@codemaoz90
/**
 * A useful spy captures information, which they can't do if everyone's asleep.
 *
 * @param {boolean} knightIsAwake
 * @param {boolean} archerIsAwake
 * @param {boolean} prisonerIsAwake
 *
 * @returns {boolean} Whether or not you can spy on someone.
 */
export function canSpy(knightIsAwake, archerIsAwake, prisonerIsAwake) {
 return knightIsAwake || archerIsAwake || prisonerIsAwake  
}

Hi I am facing a problem with this exercise, I think the solution is good but the tests does not pass.
I am sure If any of these booleans are true, this function return true.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions