Module Magic! Error


#1

Module Magic
Super. Let's move on to modules!

Instructions
Create your own module called Languages in the editor to the right. Include a constant called FAVE and set it equal to a string naming your favorite programming language!

module Languages
    FAVE = "Ruby"
    end
end

So, basically, I have refreshed my browser, tried using "include" before FAVE. Am I missing something?


#2

You have 2 errors as I see there.
1. Did you create a module called Languages?
2. Syntax error, unexpected keyword "end", expecting $end

Try debugging both of them. I'm not on the course so I can't see the assignment unfortunately.


#3

Thanks for the input; I ended up finding the error. It was let it pass with "ruby" instead of "Ruby"


#4

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