Skip to content

Latest commit

 

History

History
14 lines (11 loc) · 519 Bytes

function_1_hello_world.md

File metadata and controls

14 lines (11 loc) · 519 Bytes

Description

Make a simple function called greet that returns the most-famous "hello world!".

Style Points

Sure, this is about as easy as it gets. But how clever can you be to create the most creative "hello world" you can think of? What is a "hello world" solution you would want to show your friends?

My Solution

def greet
  [104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100, 33].map(&:chr).join
end