I don't know what im doing wrong!


#1


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


i try adding the =! code that it still requires but even if i add it in the right place it still says i have an error


Replace this line with your code. 

# boolean_1 = 77 < 78 && 77 < 77
boolean_1 = 77 < 78 && 77 < 77
=> false

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

# boolean_3 = 2**3 == 8 && 3**2 == 9
boolean_3 = 2**3 == 8 && 3**2 == 9 =! true
=> true


#2

"Not equal" is represented by !=, but you had the order switched around. :slight_smile:


#3

ok so what about the final boolean, since its true does it need a new sign?
This is what i have so far since you helped:

boolean_1 = 77 < 78 && 77 < 77

boolean_1 = 77 < 78 && 77 < 77 != false

boolean_2 = true && 100 >= 100

boolean_2 = true && 100 >= 100 != false

boolean_3 = 2**3 == 8 && 3**2 == 9

boolean_3 = 2**3 == 8 && 3**2 == 9 =! true


#4

=! is not the right operator, it should be !=.


JavaScript does not support chained comparisons. For example this code - 100 >= 100 != false should be written as (100 >= 100) != false or 100 >= (100 != false).


These statements:

=> false
=> true

indicates the result of the code. Treat them as the comments, they are not part of the code.


In this exercise, you were supposed to evaluate the boolean expressions without the help of the computer and just assign results to variables.

For example, 77 < 78 && 77 < 77 is false because 77 is not lower than 77 so you should write:

boolean_1 = false

#5

ahhhh i see thank you so much


#6

You're very welcome :slight_smile:


#7

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