Skip to content

Instantly share code, notes, and snippets.

@kmandreza
Created June 19, 2012 02:51
Show Gist options
  • Save kmandreza/2952036 to your computer and use it in GitHub Desktop.
Save kmandreza/2952036 to your computer and use it in GitHub Desktop.
Family Love
family = ["Javier","Darjeeling","Chai"]
family.each do |i|
   puts "I love you, " + i
end
in JS
var family = ["Javier","Darjeeling","Chai"];
for (var i = 0; i < family.length; i++) {
   console.log("I love you, " + family[i]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment