+ 1
How do I use the enter key as my input in ruby.
I tried "\n" but it doesn't work
5 odpowiedzi
+ 2
I used "" and it worked
+ 4
This doesn't work because '\n' looks for the characters, \n instead of a new line. You want to use "\n" so it will actually read it as a newline instead of actual characters.
Try this
if names == "\n"
puts "yeah"
end
//it will help you😊😊😉
+ 3
young ochiel try to use it in code playground
+ 1
Am using on PC
0
Larzy Maxy-! Tried that already. Doesn't work.