Code Studio · Level 5
Function Challenge
Write a real JavaScript function, then call it at least two times.
Write your own function.
Example code
function celebrate(item) {
say("The robot found " + item + "!");
}
celebrate("a star");
celebrate("a badge");
Program result
- Run your code to see output.
Type real JavaScript, then run it.
Function challenge complete.
You wrote a real JavaScript function and called it more than once.
Next Lesson