Assessment wanted for Adding bouncing balls features. (Task-1)
Link to task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Adding_bouncing_balls_features
Link to my code:
Task-1: https://jsfiddle.net/EiNzp/4hwan7gs/2/
Thanks
Assessment wanted for Adding bouncing balls features. (Task-1)
Link to task: https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Adding_bouncing_balls_features
Link to my code:
Task-1: https://jsfiddle.net/EiNzp/4hwan7gs/2/
Thanks
Congratulations on this challenging exercise, @EiN!
As far es I can see everything is correct.
Whenever you have a boolean like ball.exists
inside a condition you can just leave out === true
.
if (ball.exists) {...}
is enough.
Keep up the great work,
Michael