Skip to content

homework #22

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

homework #22

wants to merge 1 commit into from

Conversation

Orbis1
Copy link

@Orbis1 Orbis1 commented Mar 22, 2022

What is wrong with tasks?
1 - Solution is too long: no more than 29 characters expected
How can I use bind and not exceed char limit?

3 - Solution is too short: at least 150 characters expected
What I need to change in my solution?

// The function should return cube of argumant (to the power of three).
const cube = null;
// The function should return cube of argument (to the power of three).
const cube = (n) => Math.pow.bind(null, n)(3);
Copy link
Member

Choose a reason for hiding this comment

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

You can bind power function

Copy link
Author

Choose a reason for hiding this comment

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

I can't
Error: Function cube expected to be binded Math.pow

Comment on lines +10 to +11
const today = new Date().toISOString().split('T')[0];
return tagged(today, str);
Copy link
Member

Choose a reason for hiding this comment

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

Use partial application for tagged

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

Successfully merging this pull request may close these issues.

2 participants