-
Notifications
You must be signed in to change notification settings - Fork 16
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
base: main
Are you sure you want to change the base?
Hossein-w3-JavaScript #21
Conversation
// TODO complete this function | ||
function computeEarnings(mondayTasks, hourlyRate) { | ||
const euroSign = '\u20AC'; | ||
const workingHours = |
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.
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 :)
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.
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!
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.
thank you :)
Hi Elyas, |
No description provided.