Chapter 6 drills. Drill #7

Post a reply

Confirmation code
Enter the code exactly as it appears. All letters are case insensitive.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Chapter 6 drills. Drill #7

Re: Chapter 6 drills. Drill #7

by Katy » Wed Jan 09, 2019 5:32 pm

I understand now. Thanks!

Re: Chapter 6 drills. Drill #7

by JeremyMoritz » Tue Jan 08, 2019 9:34 pm

The full IF condition means "if there is NO person2Age, AND there IS a person1Age... OR ... if person1Age is GREATER THAN person2Age..."

Chapter 6 drills. Drill #7

by Katy » Tue Jan 08, 2019 6:14 pm

if ((!person2Age && person1Age) || person1Age > person2Age) {
whoseTurn = 1;

In this section does the does the (!person1Age && person2Age) mean that if person2 is not there person1 is older?

Top