Hello World!

teixtarcio

Tárcio

Posted on July 10, 2022

Hello World!

Documenting my learning journey #2

Today I wrote my first line of Ruby code. A simple "Hello World", but that became special because it was my first project that I could see running.

puts "Hello World"
Enter fullscreen mode Exit fullscreen mode

Image 1

I also learned how to create a loop. Nothing more than a repetition, but to be done it needs to be encoded in a "code block". I did it this way:

5.times do
    puts "Hello World!"
end
Enter fullscreen mode Exit fullscreen mode
💖 💪 🙅 🚩
teixtarcio
Tárcio

Posted on July 10, 2022

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related