Skip to content

Conversation

@dashaaaa21
Copy link

No description provided.

Copy link

@dardecena dardecena left a comment

Choose a reason for hiding this comment

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

Fantastic job!!

Comment on lines +14 to +16
return numbers
.filter(number => number % 2 === 0)
.map(number => number * 2);

Choose a reason for hiding this comment

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

Great job! Clean and concise ⭐

Comment on lines +33 to +37
function computeEarnings(tasks, hourlyRate) {
const total = tasks
.map(task => task.duration / 60 * hourlyRate)
.reduce((sum, value) => sum + value, 0);
return `€${total.toFixed(2)}`;

Choose a reason for hiding this comment

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

Nice! Clear naming for function parameters. Clean code and nice use of string templating.

Comment on lines +29 to 31
function sanitizeFruitBasket(basket, fruitToRemove) {
return basket.filter(fruit => fruit !== fruitToRemove);
}

Choose a reason for hiding this comment

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

Way to go! Clear, easy-to-read function.

Comment on lines +37 to +39

sanitizeFruitBasket.length;
expect(sanitizeFruitBasket.length).toBe(2);

Choose a reason for hiding this comment

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

👍

Comment on lines +45 to +47

sanitizeFruitBasket(fruitBasket, 'lemon');
expect(fruitBasket).toEqual(originalFruitBasketContents);

Choose a reason for hiding this comment

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

👍

c: 'amount, this, wallet'
},
answer: '?',
answer: 'b',

Choose a reason for hiding this comment

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

👍

c: 'transferInto, anonymous'
},
answer: '?',
answer: 'c',

Choose a reason for hiding this comment

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

👍

c: 'Step'
},
answer: '?',
answer: 'a',

Choose a reason for hiding this comment

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

👍

c: 'Transferring € 50,00 from Jack to Jane'
},
answer: '?',
answer: 'a',

Choose a reason for hiding this comment

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

👍

c: 'Jane'
},
answer: '?',
answer: 'c',

Choose a reason for hiding this comment

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

👍

@dashaaaa21
Copy link
Author

Thank you very much for reviewing my work, I appreciate your feedback!!!

@dardecena dardecena removed their assignment Sep 16, 2025
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.

2 participants