Cannot input value for 'gets'


#1

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

Exercise link
https://www.codecademy.com/en/courses/learn-ruby/lessons/create-a-histogram/exercises/you-know-the-drill?action=resume

I cannot enter anything at the cursor after I clicked run, and it wouldnt let me pass through this step.

I’ve tried to restart my browser, change to another browser, change to another PC, change to a mac… but none of it worked.

I also check the previous parts where I have to use the same ‘gets’ with cursor input required but I can give inputs correctly.



text = gets.chomp
puts text



#2

Try putting quotes around text (puts “text”).


#3

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