Ruby ( Back End ) Flashcards
1
Q
What are the 3 ruby data types ?
A
• Numeric = numbers
• String = “ learning to code is fun”
• Boolean = true or false ( without “” )
2
Q
What should I use to make a mathematical calculation ?
A
puts my_addition = 76+55
3
Q
What are the two data structures used in ruby ?
A
Array & Hash
Array = [ used like this ]
4
Q
What is the signal to use to make a comment in Ruby ?
A
#