Skip to content

Instantly share code, notes, and snippets.

@anchietajunior
Last active November 19, 2019 14:59
Show Gist options
  • Save anchietajunior/599a628d76288bafb9b6e1d8cd9b6518 to your computer and use it in GitHub Desktop.
Save anchietajunior/599a628d76288bafb9b6e1d8cd9b6518 to your computer and use it in GitHub Desktop.
# Each
arr = ["Luke", "Leia", "Vader"]
arr.each do |name|
p name
end
# Times
3.times do
p "This is my array #{arr}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment