17 in control flow, can't figure this one out


#1

Alright, I think I understand the first two, but I have my jaw dropped at the last one. I'm stuck here and it's kinda confusing to me: https://www.codecademy.com/courses/ruby-beginner-en-NFCZ7/3/5?curriculum_id=5059f8619189a5000201fbcb

test_1 should be true

test_1 = (2 == 2) && (9 == 9) // true

test_2 = should be true

test_2 = (7 * 8) == 56 || (3 == 3) // true

test_3 = should be false

test_3 = (6 == 9) && (7 == 5) // false


#2

// is a JavaScript comment. Use # for Ruby comments.

One of your expressions should use NOT (!), and for practice change up the comparisons a little, rather than everything being ==.

Remember, in an OR expression, only one operand needs to be true. The other can be anything.


#3

Thanks mtf! Totally forgot those important things.


#4

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