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

Module 16 of 35 · Text

#16

welligton costa

/ *

Condicionais

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

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

- se a nota for inferior a 50, retornar "reprovado"

- se 50 ou mais, retorna "aprovado"

* /

function studentPassed(grade) {

}

/*

DO NOT EDIT BELOW THIS LINE

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

var grade1 = 49;

var grade2 = 50;

var grade3 = 100;

console.log("'" + grade1 + "': " + studentPassed(grade1))

console.log("'" + grade2 + "': " + studentPassed(grade2))

console.log("'" + grade3 + "': " + studentPassed(grade3))

 

 

 

/ *

RESULTADO ESPERADO

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

'49': falhou

'50': aprovado

'100': aprovado

* /

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?