Good work! Here are my notes on your code:
- Good overall use of
fetch
. Take a look at this for some subtle differences when usingfetch
that you will need to be aware of. (It looks like you are already aware, but just to make sure.) Notice specifically hownil
andfalse
values are handled differently byfetch
and[] ||
. - Interesting choice to pass default values to only four specific attributes. I am guessing you did this just to see what it would do? If so, good job on exploring.
- Good job using
fetch
for setting boolean values. If instead you utilized[] ||
it would have set both variables totrue
, which you would not want. Sweet!
Any questions, let me know. 👍
-Phil