This content originally appeared on DEV Community and was authored by Tárcio
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"
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
This content originally appeared on DEV Community and was authored by Tárcio
Tárcio | Sciencx (2022-07-10T23:34:38+00:00) Hello World!. Retrieved from https://www.scien.cx/2022/07/10/hello-world-18/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.
