Start learning free

LESSON 30 OF 671 · FUNCTIONS I

Calling Functions: Buggy Code in Go

Practice

Inside the code editor we've tried to define and call a function that prints the messages Hey coder! and Welcome back!.

When the code is fixed, it should print:

Hey coder!
Welcome back!

In Go, a function call uses the function name followed by parentheses:

welcomeUser()

Assignment:

Your task is to fix the code so no errors are produced and it prints the desired output.


STEP 1 OF 1
    Ctrl + Enter to check