Invalid value given for a test. Instead of 0 for a width 80 is logged. I’m console logging right away. Task 4
This looks like you might have a bug in your Size
class. How do you handle default values for new Size(0, 0)
?
hint: instead of testing for a truthy value, use the ??
operator
Oh I see, you’re right
This doesn’t work with 0’s.
Used default parameters instead and it’s working well. Thank you!