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.

Folder Icon

Take this course for free

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

Already have an account?