Start learning free

LESSON 29 OF 677 · FUNCTIONS I

Defining Functions: Buggy Code in Scala

Practice

Inside the code editor we've tried just to define a function (without calling the function) that would print the message Hey, Andy! whenever called.

It seems like we made some mistakes because our code doesn't compile: we get an error.


Assignment:

Your task is to fix our function definition such that no errors will be produced.

STEP 1 OF 1
    Ctrl + Enter to check