Unterminated regexp meets end of file


#1

(ruby):7: unterminated regexp meets end of file
THIS MESSAGE APPEARS IN #test_3 = should be false
test_3 = !(true) // true

i typed !(2>1)// (3>2)
not working . Please help me


Still can't get passed booleans
#2

The lesson text contains this example...

( 1 == 1 ) && ( 2 == 2 )  // true
( 1 == 2 ) || ( 2 == 2 ) // true
!( false ) // true

Only problem is those are JavaScript comments, not Ruby. It should have been written,

( 1 == 1 ) && ( 2 == 2 )  # true
( 1 == 2 ) || ( 2 == 2 ) # true
!( false ) # true

Ruby sees // and expects a regular expression, which is what causes the error.


#3

Why are you using //? Or in ruby is ||


#4

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