title: How to translate a 'greeting_for' function from Ruby to Javascript
body: <p>Here's a sample code:</p>
  
  <pre><code>def greeting_for(name)
    "Hello, #{name}!"
  end
  
  puts greeting_for "Marty"
  </code></pre>
  
  <p>Any help would be appreciated.</p>