Start learning free

LESSON 30 OF 675 · FUNCTIONS I

Defining Functions: Buggy Code in TypeScript

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: the compiler reports an error (TS2391: the function has no body).


Assignment:

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

STEP 1 OF 1
    Ctrl + Enter to check