-
Notifications
You must be signed in to change notification settings - Fork 31
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
base: master
Are you sure you want to change the base?
Conversation
…opção inexistente
There was a problem hiding this 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) |
There was a problem hiding this comment.
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) |
There was a problem hiding this comment.
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
.
No description provided.