Skip to content

Instantly share code, notes, and snippets.

@kopylovvlad
Created April 30, 2017 12:05
Show Gist options
  • Save kopylovvlad/dd2c9fabfe744331f317baa05dbb5725 to your computer and use it in GitHub Desktop.
Save kopylovvlad/dd2c9fabfe744331f317baa05dbb5725 to your computer and use it in GitHub Desktop.
say_hello = (name, job_position) ->
"Hello. My name is #{name}. And I am a #{job_position}"
console.log(say_hello('John', 'developer'))
console.log(say_hello('Eva', 'designer'))
cat =
name: 'cat'
say: 'meow'
say = (animal) ->
"#{animal.name} says #{animal.say}"
console.log(say(cat))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment