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

Module 17 of 35 · Text

#17

welligton costa

  

/ *

Condicionais

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

Escreva uma função que verifique se um aluno foi aprovado

- se a nota for 80 ou mais, a nota é "A"

- se a nota for inferior a 80 e superior a 60, a nota é "B"

- se a nota for 60 ou inferior, mas não inferior a 50, a nota é "C"

- Caso contrário, a nota é "F"

* /

function containsCode(sentence) {

}

/*

DO NOT EDIT BELOW THIS LINE

--------------------------- */

var sentence1 = "code your future";

var sentence2 = "draw your future";

var sentence3 = "design your future";

console.log("'" + sentence1 + "': " + containsCode(sentence1))

console.log("'" + sentence2 + "': " + containsCode(sentence2))

console.log("'" + sentence3 + "': " + containsCode(sentence3))

 

 


/ *

RESULTADO ESPERADO

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

'codifique seu futuro': verdadeiro

'desenhar seu futuro': falso

'projete seu futuro': falso

* /

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?