I want to suggest changing some text and the test for this lesson.
Also, rename variables declared with
const
to conform to common practices, meaning constants should be in all caps.
I understand noting this, but not sure that it should be a hard-and-fast rule enforced by the test. Consider something like:
const MyComponent = (props) => (<div {...props} />);
or even
const findEntryByName = (name) => ({firstName}) => (firstName === name);
...
const entry = someArray.find(findEntryByName('Daisy'));
if (entry) {
// do things
}
In these examples, the variables are meant to be read-only, but donβt need to be CONSTANTCASED. In this lesson const sentence = ...
should be okay.
Thanks for listening!