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

Hossein-w3-JavaScript #21

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

Conversation

Hossein-Kelisa
Copy link

No description provided.

// TODO complete this function
function computeEarnings(mondayTasks, hourlyRate) {
const euroSign = '\u20AC';
const workingHours =
Copy link

@elias-soykat elias-soykat Dec 13, 2024

Choose a reason for hiding this comment

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

Use the map array function to take out the duration time for each task.

I think you do not meet the requirements. you should use map instead of reduce. if you face any issue then feel free to share it over slack :)

Copy link
Author

Choose a reason for hiding this comment

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

Hi Elyas,
Thank you for your feedback, I've updated the code for ex2-mondaysWorth.js to use the map function as requested. The changes are now pushed, and the pull request has been updated. Please let me know if there's anything else to adjust!

Choose a reason for hiding this comment

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

thank you :)

@Hossein-Kelisa
Copy link
Author

Hi Elyas,
Thank you for your feedback, I've updated the code for ex2-mondaysWorth.js to use themapfunction as requested. The changes are now pushed, and the pull request has been updated. Please let me know if there's anything else to adjust!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants