Posts by Romullo Ferreira • 31 points
2 posts
-
3
votes8
answers3758
viewsA: Exercise taking the position of the array
Follow my solution to the problem: var posicoes = ['nada', 'ouro', 'prata', 'bronze']; function medalhaDeAcordoComPosto(numero){ if( numero >= posicoes.length ){ return ("nada"); } else{ return…
-
-1
votes7
answers4295
viewsA: What does it mean Does the solution make comparisons against strings in the following code? JS
var diaDeSemana = "domingo"; var valorComparativo = "domingo"; if (diaDeSemana === valorComparativo) { console.log("hoje é dia de futebol!"); } …