Skip to content

Instantly share code, notes, and snippets.

@skinofstars
Created September 24, 2012 15:10
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 skinofstars/3776450 to your computer and use it in GitHub Desktop.
Save skinofstars/3776450 to your computer and use it in GitHub Desktop.
quick function comparison example
// js
var helloParam = function(param) {
return "hello "+param;
}
console.log(helloParam("world"));
// php
function helloPram($param) {
return "hello ".param;
}
echo helloParam("world");
// ruby
def helloParam param
"hello "+param
end
puts helloParam "world"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment