Skip to Content
Learn
The Zen of Ruby
Implicit Return

Next up: let’s simplify our method madness by removing unnecessary returns from our code.

Instructions

1.

Write a method, square, that takes a number as an argument and implicitly returns the square of that number.

Folder Icon

Take this course for free

Already have an account?