Section 1 - Instruction

Last time, we learned how functions can return values. Now let's practice combining everything—functions that take parameters AND return results to solve real-world problems.

Engagement Message

Ready to build some practical functions?

Section 2 - Instruction

Let's create a function that calculates something useful. This function takes a price and tax rate, then returns the total cost:

Engagement Message

What makes this function reusable?

Section 3 - Instruction

The returned value can be used immediately! We don't always need to store it in a variable first. Watch how we use the result directly inside a console.log():

Engagement Message

Both approaches work. Which feels more natural to you?

Section 4 - Instruction

Functions become powerful when they can call other functions. We can use one function's output as another function's input, creating calculation chains.

Engagement Message

Can you follow the chain: what's the final result?

Section 5 - Practice

Type

Fill in The Blanks

Markdown With Blanks

Your turn now!

Complete this function that converts minutes to hours and returns the result:

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