Skip to content
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

criando pasta Entrega, adicionando exercícios resolvidos #6

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

TairineEllen
Copy link

No description provided.

Copy link
Contributor

@AnnaNee AnnaNee left a comment

Choose a reason for hiding this comment

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

Ficou muito bom o seu projeto e seus exercícios, parabéns! Tive poucos comentários, só algumas melhorias em relação ao projeto e sugestões de como fazer a mesma coisa de outras formas no exercício.
Gostei muito que você fez os extras do exercício e a indentação de todos os arquivos estão perfeita! Achei muito organizado e as variáveis tem ótimos nomes. Muito bom mesmo. (:

Parabéns!


function tabuadaDoSeis() {
for (let i = 1; i <= 10; i++) {
console.log(6*i)
Copy link
Contributor

Choose a reason for hiding this comment

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

O que acha de tentar fazer nessa estrutura agora:

$ node exercicio2.js
6 x 1 = 6
6 x 2 = 12

(:

]

function itensComprados(arr){
const itensComprados = arr.filter(item => item.comprado === true)
Copy link
Contributor

Choose a reason for hiding this comment

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

Aqui, como o resultado de item.comprado é um truthy value, você pode só retornar: !item.comprado. Dessa forma, você já vai retornar um Boolean pro filter.

Entrega/projeto/pokemons.js Show resolved Hide resolved
Entrega/projeto/pokemons.js Show resolved Hide resolved
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.

None yet

2 participants