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.
You build one with function name(input) { ... }. After that, name(4) runs the machine with 4 as the input — as many times as you like.
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.