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”

I also learned how to create a loop. N…


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"

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


This content originally appeared on DEV Community and was authored by Tárcio


Print Share Comment Cite Upload Translate Updates
APA

Tárcio | Sciencx (2022-07-10T23:34:38+00:00) Hello World!. Retrieved from https://www.scien.cx/2022/07/10/hello-world-18/

MLA
" » Hello World!." Tárcio | Sciencx - Sunday July 10, 2022, https://www.scien.cx/2022/07/10/hello-world-18/
HARVARD
Tárcio | Sciencx Sunday July 10, 2022 » Hello World!., viewed ,<https://www.scien.cx/2022/07/10/hello-world-18/>
VANCOUVER
Tárcio | Sciencx - » Hello World!. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/07/10/hello-world-18/
CHICAGO
" » Hello World!." Tárcio | Sciencx - Accessed . https://www.scien.cx/2022/07/10/hello-world-18/
IEEE
" » Hello World!." Tárcio | Sciencx [Online]. Available: https://www.scien.cx/2022/07/10/hello-world-18/. [Accessed: ]
rf:citation
» Hello World! | Tárcio | Sciencx | 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.

You must be logged in to translate posts. Please log in or register.