Skip to content

Fixed function name #1

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

Merged
merged 2 commits into from
Mar 3, 2016
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Updated function name
Updated function name in comments to match function name in the code
  • Loading branch information
dimchez committed Mar 3, 2016
commit 21023cd16fc6ae547aebf54708f77ff3fb2ec8a0
6 changes: 3 additions & 3 deletions tutorial/1/03/map.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ Those D & F grades would look a lot better if they suddenly became A's.

Let's go back to before we filtered out the bad grades, and instead change the grades to A's.

+ Make a function `changeGrades` that takes student data and changes all grades to "A"s.
+ Make a function `changeGrade` that takes student data and changes all grades to "A"s.
@test('1/03/01-map')
@action(open('03-map.js'))
@action(set(
Expand All @@ -72,11 +72,11 @@ function changeGrade() {
@hint('match where `student.grade === 'A'`')


+ Map over the `myData` with the `changeGrades` function. Set `myChanged` to the result.
+ Map over the `myData` with the `changeGrade` function. Set `myChanged` to the result.
@test('1/03/02-map')
@action(insert(
```
// map over `myData` with the `changeGrades` function
// map over `myData` with the `changeGrade` function
var myChanged = myData.map();
```
))
Expand Down