I followed the example provided with the instructions. I never did anything different than the example, except placing the required function name and the text.
function functionName() {
console.log("Hello World");
}
Remember to call it after following the example, though. I was stuck on that for a short time.