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

syntax error in map demonstration #1

Closed
marcmajcher opened this issue Nov 5, 2021 · 1 comment
Closed

syntax error in map demonstration #1

marcmajcher opened this issue Nov 5, 2021 · 1 comment
Assignees
Labels
se curriculum Issue for lessons in the Software Engineering program

Comments

@marcmajcher
Copy link

Canvas Link

https://learning.flatironschool.com/courses/4549/pages/mapping-arrays?module_item_id=317835

Concern

const newEngineers = map(oldAccounts, function (account) {

should be

const newEngineers = oldAccounts.map(function (account) {

Additional Context

No response

Suggested Changes

No response

@marcmajcher marcmajcher added the se curriculum Issue for lessons in the Software Engineering program label Nov 5, 2021
@marcmajcher
Copy link
Author

(This is what was reported by a confused student—I think it could be made clearer that the "map" in question is the function that they're writing, not the built-in map function.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
se curriculum Issue for lessons in the Software Engineering program
Projects
None yet
Development

No branches or pull requests

2 participants