When I finished the ruby_basics exercise, I looked at the solutions and noticed that the functions (or methods) didn’t have a return statement. I found this odd, which led me to the article I’ve linked, which explains that Ruby methods don’t require an explicit return statement.
Because
For those that just finished the Foundations course, and came from JS, they will find it a bit odd that Ruby methods does not require an explicit return statement.
The article linked in the assignment briefly and clearly explains that little mystery
This PR
Add a link to an article that explain the return values in Ruby
When I finished the ruby_basics exercise, I looked at the solutions and noticed that the functions (or methods) didn’t have a return statement. I found this odd, which led me to the article I’ve linked, which explains that Ruby methods don’t require an explicit return statement.
Because
For those that just finished the Foundations course, and came from JS, they will find it a bit odd that Ruby methods does not require an explicit return statement. The article linked in the assignment briefly and clearly explains that little mystery
This PR
Issue
Closes #XXXXX
Additional Information
Pull Request Requirements
location of change: brief description of change
format, e.g.Intro to HTML and CSS lesson: Fix link text
Because
section summarizes the reason for this PRThis PR
section has a bullet point list describing the changes in this PRIssue
section