Click to reopen instructions.

This assessment consists of functions you need to write involving translating between code written in the higher-order style (using the filter, map, etc. methods on arrays) and the non-higher-order style (using for loops, if statements, and variables). The first half ask you to translate to higher-order style and the second half from higher-order style. Feel free to start with whichever questions you are most comfortable with. All the questions involve the array of fruit objects defined in the starter code as fruitBowl and some questions use the functions isTasty and isInconvenient also defined in the starter code. You don't need to change any of that code but you can use it for testing your functions. (Note that you can hover the mouse just to the left of the const on line 1 and click the down arrow that appears to collapse the definiton of the array which is rather long.)

This is an open book assessment. You may refer to your code from previous assignments and may look at whatever documentation is helpful. In particular you may want to refer to the answers to the HOF implementation and Array HOFs assignments. However, you may not use ChatGPT or any other AI to write your code.

You can move through the questions with the arrows at the upper right next to the 1 of indicator so if you're not sure how to write one function move on to another one and come back if you have time at the end. I want to see how much you do know. Note: click on the code in the questions to select it so you can copy it into the editor as a starting point.

When you are done, please click on your Github username above and submit a GitHub pull request of the branch and request me as a reviewer.

Put definitions here.

Revisions: