Rocket built a greeting machine. It says "Hello, Rocket!" every time. "But I want it to greet Raven too," he says.
Raven reads the steps. "What do you notice? Only the name needs to change."
Nova hovers close. "Here is a hint. A function can take an input. The input tells it what to work on." Let's help them give the function an input.
Some functions take an INPUT (also called a PARAMETER). The input tells the function WHAT to work on.
function greet(name):
say 'Hello, ' + name + '!'
greet('Rocket') β Hello, Rocket!
greet('Raven') β Hello, Raven!
greet('YOU') β Hello, YOU! What does each call PRINT? Write the output.
Design a function called MAKE_BRACELET that takes a color as input.
Write the steps inside.