File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change 3838 " insert('// call filter condition here\n var myData = data.filter();\n ')"
3939 ],
4040 "hints" : [
41- " Array.filter(function() {})" ,
41+ " Add a function to the `filter` call: ` Array.filter(function() {})` " ,
4242 " Pass `isAda` into your `filter` call"
4343 ]
4444 },
5151 " insert('\n\n // return true if student.grade is not a \" D\" or \" F\"\n function isGoodGrade(student) {\n\n }\n ')"
5252 ],
5353 "hints" : [
54- " match for `student.grade` that isn\\ 't \" D\" or \" F\" " ,
54+ " match for `student.grade` that isn't \" D\" or \" F\" " ,
5555 " use `!==` to check non-equality" ,
56- " student.grade !== \" D\" && student.grade !== \" F\" "
56+ " Match for both: ` student.grade !== \" D\" && student.grade !== \" F\" ` "
5757 ]
5858 },
5959 {
Original file line number Diff line number Diff line change 11{
22 "name" : " coderoad-functional-school" ,
3- "version" : " 0.1.4 " ,
3+ "version" : " 0.1.5 " ,
44 "description" : " Coderoad tutorial" ,
55 "author" : " Shawn McKay <shawn.j.mckay@gmail.com> (http://shmck.com)" ,
66 "contributers" : [],
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ function isAda() {
9393var myData = data.filter();
9494```
9595))
96- @hint ('` Array.filter(function() {}) ` ')
96+ @hint ('Add a function to the ` filter ` call: ` Array.filter(function() {}) ` ')
9797@hint ('Pass ` isAda ` into your ` filter ` call')
9898
9999+ Write a filter condition called ` isGoodGrade ` that will filter out any "D" or "F" grades.
@@ -108,9 +108,9 @@ function isGoodGrade(student) {
108108}
109109```
110110))
111- @hint ('match for ` student.grade ` that isn\ ' t "D" or "F"')
111+ @hint ('match for ` student.grade ` that isn't "D" or "F"')
112112@hint ('use ` !== ` to check non-equality')
113- @hint ('` student.grade !== "D" && student.grade !== "F" ` ')
113+ @hint ('Match for both: ` student.grade !== "D" && student.grade !== "F" ` ')
114114
115115+ Set ` var myBest ` to your scores, excluding any grades that are "D" or "F".
116116
You can’t perform that action at this time.
0 commit comments