- screenshots of scores will be posted in comments
- screenshots of completed sections will be posted in comments
age = 5 | |
wishes = (age * "happy " + "Birthday!").capitalize | |
puts wishes | |
puts "HI GUYS" | |
puts "10 times 10 is #{10 * 10}" |
class Dog # class name is a "constant" | |
# Objects combine: | |
# -- state (instance variables) | |
# -- behavior (methods) | |
def initialize | |
# first step in the object's lifecycle | |
# do i have any setup i actually need to do? | |
@animals_chased = [] | |
end |
(Should be completed by Monday)
This exercise is intended to help you assess your progress with the concepts and techniques we've covered during the week.
For these questions, write a short snippet of code that meets
the requirement. In cases where the question mentions a "given"
data value, use the variable given
to refer to it (instead of re-writing
the information).