An Interest In:
Web News this Week
- April 2, 2024
- April 1, 2024
- March 31, 2024
- March 30, 2024
- March 29, 2024
- March 28, 2024
- March 27, 2024
July 10, 2022 11:34 pm GMT
Original Link: https://dev.to/teixtarcio/hello-world-50bj
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. 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:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To