Ruby


#1

so thx... its usefull !


#3

https://www.codecademy.com/en/courses/ruby-beginner-en-NFCZ7/2/1?curriculum_id=5059f8619189a5000201fbcb

Instructions

Let's practice a bit with &&.
Check out the boolean expressions and set each variable to true or false depending on what value you expect the expression to return.

Is boolean_1 true or false

boolean_1 = 77 < 78 && 77 < 77
boolean_1 =  # true or false

Is boolean_2 true or false

boolean_2 = true && 100 >= 100
boolean_2 = # true or false

Is boolean_3 true or false

boolean_3 = 2**3 == 8 && 3**2 == 9
boolean_3 = # true or false

#4

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