From e57409296cfcb3f122884bf99c4f274bcaccc665 Mon Sep 17 00:00:00 2001 From: Kim Engel Date: Sat, 8 Sep 2018 16:24:01 +1000 Subject: [PATCH] Fix error in example text Reviewed and approved by a mentor --- _steps/step7-functions.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_steps/step7-functions.markdown b/_steps/step7-functions.markdown index f64e5ac..94280e8 100644 --- a/_steps/step7-functions.markdown +++ b/_steps/step7-functions.markdown @@ -229,7 +229,7 @@ When the function encounters the `return` keyword, the function stops running im Now let's invoke it from `setColor` and just log the result. Add this line to the end of `setColor`: ```Javascript -console.log(getMessage(color, elementId)); +console.log(getMessage(event.target.value, event.target.name)); ``` Save it and test it in the browser. See how the return value from `getMessage` is “passed back” to `console.log`