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

Consider adding additional refactoring challenge for operations #19

Open
tildeee opened this issue Jun 1, 2021 · 0 comments
Open

Consider adding additional refactoring challenge for operations #19

tildeee opened this issue Jun 1, 2021 · 0 comments

Comments

@tildeee
Copy link
Collaborator

tildeee commented Jun 1, 2021

We could consider doing this in a loop, which I find a little more compelling and would challenge the reader to do some research about for/of. But it would require some rework to the following passages.

for (const operator of [multiply, add]) {
  const result = calculate(7, 6, operator);
  console.log('Our final result from calculate is:', result);
}

Originally posted by @anselrognlie in #8 (comment)

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

No branches or pull requests

1 participant