GoConqr has a new look! Let us know what you think.

Module 11 of 35 · Text

#11

welligton costa

/ *

Predicados

---------------------------------

Escreva um predicado para predicados

As variáveis ​​devem ter valores que correspondam aos resultados esperados.

* /

// Conclua a função de predicado para testar se o número passado é negativo (menor que zero)

 

 

var number = 5;

var numberNegative = isNegative(number);

var numberBetweenZeroAnd10 = isBetweenZeroAnd10(number);

console.log("The number in test is " + number);

console.log("Is the number negative? " + numberNegative);

console.log("Is the number between 0 and 10? " + numberBetweenZeroAnd10);

 

 

 

 

/ *

RESULTADO ESPERADO

---------------

O número em teste é 5

O número é negativo? falso

O número está entre 0 e 10? verdade

* /

Instructions

You must submit an attempt for this quiz to progress. You can submit it after the last question.

Go to the chosen module

Feedback

What is it about?

What do you think of the new look?

How do you like it?