Section 1 - Instruction

You've learned how functions can accept parameters and return values. Now let's practice using these concepts together to solve various problems.

Engagement Message

Ready to become a function master?

Section 2 - Practice

Type

Multiple Choice

Practice Question

Which function correctly calculates the area of a circle and returns the result?

A. Function A B. Function B C. Function C D. Function D

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 3 - Practice

Type

Fill in The Blanks

Markdown With Blanks

Complete this function that calculates a tip amount and returns it.

Suggested Answers

  • 100
  • return
  • tipAmount
  • tipPercent
Section 4 - Practice

Type

Sort Into Boxes

Practice Question

Sort these lines of code based on whether they use the function's return value or ignore it.

Labels

  • First Box Label: Uses Return Value
  • Second Box Label: Ignores Return Value
Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal