For this challenge, we're setting out to assign a value of
true to our new
var surviveThisTrial = /* using the strength and fear values */
Here are the initial values for the variables:
var strength = true;
var fear = false;
Feel free to review the video lecture for this section if you need a refresher on creating logical statements.
Essentially, we need to set a value of true to
surviveThisTrial like this:
var surviveThisTrial = true && true;
But it looks like we have current values of
false stored in our variables.
var surviveThisTrial = strength && fear;
So we can convert the
false value to
true using NOT with the
! operator. You can read more about it here on MDN too if the video lecture was too quick.
var surviveThisTrial = strength && !fear;
If you get stuck anywhere in the course, feel free to check out the provided solutions that are already available for every challenge. And don't forget to review the video lecture for this section if you're having trouble!