Full-Stack Engineer Career Path > JavaScript and the DOM > Interactivity with onclick > Hint instruction error and typo

Summary of the report: Test 2 does not pass using the syntax of the hint. The test passes with a callback to turnButtonRed (as seen in the solution), but not when turnButtonRed is assigned to element.onclick (as suggested in the hint).

There’s also a typo in the hint: element.style.backgGround should be element.style.backgroundColor.

Course URL: https://www.codecademy.com/paths/full-stack-engineer-career-path/tracks/fscp-building-interactive-websites-with-javascript/modules/fecp-javascript-and-the-dom/lessons/javascript-dom/exercises/onclick-element