In a conditional statement, you want to execute the code only if both value are true. Which comparison operator should you use?

✅  The correct answer is:

&&

Question:

In a conditional statement, you want to execute the code only if both value are true. Which comparison operator should you use?

Solution:

  • ||
  • &
  • <=>
  • &&