Skip to content

Instantly share code, notes, and snippets.

View sjgjohnston's full-sized avatar

Stephen Johnston sjgjohnston

  • Self
  • San Francisco Bay Area
  • 21:24 (UTC -07:00)
View GitHub Profile
# ,o888888o. 8 8888 88 8 8888 8888888888',8888'
# . 8888 `88. 8 8888 88 8 8888 ,8',8888'
# ,8 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8b 8 8888 88 8 8888 ,8',8888'
# 88 8888 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8. 88 8 8888 88 8 8888 ,8',8888'
# 88 8888 `8,8P 8 8888 88 8 8888 ,8',8888'
# `8 8888 ;8P ` 8888 ,8P 8 8888 ,8',8888'
# ` 8888 ,88'8. 8888 ,d8P 8 8888 ,8',8888'
# create an Array of 4 shoes
puts "01 ------" # to make the output easier to see...
shoes = ["loafers", "heels", "doc martins", "winklepickers"]
p shoes
# iterate through your Array using each and {}'s
# and show a list of your shoes
puts "02 ------" # to make the output easier to see...
shoes.each { |shoe| puts shoe}

#Debugging (Use The Duck… )

Find the errors in the following

1.)