Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 625 Bytes

File metadata and controls

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

in1To10

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

Dado um número n, retorne true se n estiver no intervalo 1..10, inclusive. A menos que "outsideMode" seja true, nesse caso retorne true se o número for menor ou igual a 1, ou maior ou igual a 10.

Exemplo

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

↩️ Voltar