/ Published in: Ruby
![](/img/icon_sav.png?v3)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
def my_function( a ) puts "Hello, #{a}" return a.length end len = my_function( "Giraffe" ) puts "My secret word is #{len} long"
Comments
![RSS Feed for Comments RSS Icon](/images/rss.png?v3)