Start by adding an addEventListener to the global window object. For the arguments, pass in the “keydown” event and an arrow function that uses the destructuring assignment to get the key property from the event object.
I don’t see how I’m not doing this. Any help is appreciated. Thank you!
Yet another case of a syntax example creating more headache confusion frustration than helping anyone learn. If fCC is going to provide examples of the code then don’t provide more than what is required because it turns learning into guessing into frustration. Whoever wrote the curriculum needs to remember we are students, this is literally the second language we are learning and if you really want people to grasp the concept and create a new career, remember who your audience is.
If anyone is here: the key property is a parameter just like target in the example. Unlike target though, this step doesn’t need property logged so the body of the callback is empty.