Ruby Ruby Collections Ruby Arrays Accessing Items in Arrays

Can't do [] in the console.

I can't follow the teacher like I want because I can't do [] in the irb console. alt + 8 or alt + 9 doesn't work. Can anybody help me?

Josh Salyer
Josh Salyer
7,265 Points

What exactly is the problem? Is there an error message that's displayed in the console? Are you trying to initialize an Array or access one of the elements within the Array?

David O' Rojo
David O' Rojo
11,050 Points

That seems like system configuration specific problem. What is your operating system? What are the language and keyboard configuration settings?

+1

Fausto Nunes
Fausto Nunes
2,470 Points

I have the same issue. I can't seem to finish this lesson because of it. As soon as I type the shortcut: Option + 8, irb changes to (arg:8.

I'm on MacOS currently. I'll try to finish this lesson on my home computer that runs on Windows, to see if I get the same issue.