← All JavaScript lessonsLesson 9 of 12 · ⭐ 20 XP

Make a Machine

⭐ 0 XP · 🔥 0 day streak

A function is a little machine you build once and use forever. It takes an input in, does its job, and hands an answer back out with the word return.

Your mission: finish the double machine so it hands back its input times two. The lines below the machine already test it with 4 and 9.

Checks

    Next lesson →