Skip to content

Instantly share code, notes, and snippets.

@kmandreza
Created June 19, 2012 02:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • 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