Skip to content

Latest commit

 

History

History
26 lines (21 loc) · 587 Bytes

README.md

File metadata and controls

26 lines (21 loc) · 587 Bytes
difficulty OAs projects
newbie
conditionals
cipher
card-validation

in1To10

https://the-winter.github.io/codingjs/exercise.html?name=in1To10&title=Logic-1

Dado un número n, devuelve true si n está en el rango 1..10, inclusive. A menos que "outsideMode" sea verdadero, en cuyo caso devuelve true si el número es menor o igual a 1, o mayor o igual a 10.

Ejemplo

    in1To10(5, false)  true
    in1To10(11, false)  false
    in1To10(11, true)  true