9Views1Replies

Author Options:

ERROR IN CODING? Answered

The code which is given by the tinkercad and the one given in between the lines vary. The if statement in the FADE section differs. In tinkercad, they have used "==", but in the sample given in between lines are ">=" and "<=".

Discussions

0
None
bekathwia

Best Answer 4 weeks ago

Good eye-- they perform very similarly in this context. Can you think of any benefit or downsides to using either one? What if you change the value of fadeAmount at the start of the program, does one suddenly become more advantageous? This is what thinking like a programmer is all about.