Start learning free

LESSON 48 OF 671 · FUNCTIONS I

Return: Buggy Code IV in Go

Practice

We've written a program and expected it to print:

Hey bro!
How are you doing?

but the Go compiler rejects it with missing return.

A return statement stops the function immediately, so any print statement that should run must happen before the return.

Assignment:

Fix the function so it prints Hey bro! first, then returns How are you doing?.


STEP 1 OF 1
    Ctrl + Enter to check