Ruby On Rails Interview Questions and Answers
Question: How and when would you declare a Global Variable?Answer: Global variables are declared with the ‘$’ symbol and can be declared and used anywhere within your program. You should use them sparingly to never. |
Is it helpful?
Yes
No
Most helpful rated by users:
- What is Ruby On Rails?
- Why Ruby on Rails?
- Explain how (almost) everything is an object in Ruby.
- What are Gems and which are some of your favorites?
- How would you declare and use a constructor in Ruby?