@@ -31,7 +31,7 @@ Find is great for performantly matching unique values in data, such as an "id",
31
31
@action (set(
32
32
```
33
33
// filter for the student title matches "Web Security"
34
- var myClass = students.filter();
34
+ var myClass = students.filter(::> );
35
35
```
36
36
))
37
37
@hint ('create a ` filter ` function')
@@ -50,7 +50,7 @@ var otherStudents = ["Albert Gonzalez", "Brian Kernaghan", "Danielle Bunten Berr
50
50
```
51
51
// search for a student with a name
52
52
// not matching students in `otherStudents`
53
- function notInList() {
53
+ function notInList(::> ) {
54
54
55
55
}
56
56
@@ -68,7 +68,7 @@ var unknownStudent = myClass.find();
68
68
```
69
69
70
70
// filter using `notInList`
71
- var unknownStudentList = students.filter();
71
+ var unknownStudentList = students.filter(::> );
72
72
```
73
73
))
74
74
@hint ('consider reusing a function')
@@ -79,7 +79,7 @@ var unknownStudentList = students.filter();
79
79
```
80
80
81
81
// list only student names
82
- var unknownStudentNames = unknownStudentList.map();
82
+ var unknownStudentNames = unknownStudentList.map(::> );
83
83
```
84
84
))
85
85
@hint ('use ` map ` to return only the ` student.name ` ')
@@ -90,7 +90,7 @@ var unknownStudentNames = unknownStudentList.map();
90
90
```
91
91
92
92
// use `.join('')` to join the array of strings
93
- var decodedName = unknownStudentNames;
93
+ var decodedName = unknownStudentNames::> ;
94
94
console.log(decodedName);
95
95
```
96
96
))
0 commit comments