Skip to content

[Section 4] - Sobe exercícios #22

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 34 commits into
base: main
Choose a base branch
from

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
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