Skip to content

Conversation

@devcarolzita
Copy link
Contributor

No description provided.

devcarolzita and others added 30 commits October 28, 2022 17:15
corrige formula IMC exercicio 6 operadores aritmeticos
modificacao enunciado exercicio 8 Operadores Aritmeticos
…-08.js

Co-authored-by: Gabriel Dalseco <55258427+GabrielCoruja@users.noreply.github.com>
Co-authored-by: Caról SÌlva <42356399+caabeatriz@users.noreply.github.com>
Co-authored-by: Caról SÌlva <42356399+caabeatriz@users.noreply.github.com>
cpwaldow and others added 4 commits October 28, 2022 17:16
Co-authored-by: Caról SÌlva <42356399+caabeatriz@users.noreply.github.com>
Co-authored-by: Caról SÌlva <42356399+caabeatriz@users.noreply.github.com>
Co-authored-by: Caról SÌlva <42356399+caabeatriz@users.noreply.github.com>
return // Retorne o resultado aqui
let number = numbers[0];
let maiorNumero;
for (let index = 0; index < numbers.length; index++) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Será que possui alguma melhor prática que tal testar com index += 1

// Desenvolva seu código nessa função
return // Retorne o resultado aqui
let number = numbers[0];
let maiorNumero;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sugestão, podemos complementar a variável?

let number = numbers[0];
let maiorNumero;
for (let index = 0; index < numbers.length; index++) {
const element = numbers[index];

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verificar o const dentro do for

for (let index = 0; index < numbers.length; index++) {
const element = numbers[index];
if(numbers[index] > number){
number = numbers[index]

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Poderia comentar este if explicando sua funcionalidade?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants