Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
July 10, 2022 11:34 pm GMT

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"

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

Original Link: https://dev.to/teixtarcio/hello-world-50bj

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To