if(youHit)


#1

In lesson #4: The First If Statement, I don't understand why we can just say if(youHit). It's not a boolean. Don't we need to compare it to something?


#2

Just finished explaining this earlier so will refer to the topic. If you still have questions, post them here, please.

https://discuss.codecademy.com/t/6-solo-flight/46876


#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.