Good work! Here are my notes on your code:
- Good overall use of
fetch. Take a look at this for some subtle differences when usingfetchthat you will need to be aware of. (It looks like you are already aware, but just to make sure.) Notice specifically hownilandfalsevalues are handled differently byfetchand[] ||. - 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
fetchfor 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