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



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

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?