r/codehs • • Feb 24 '26

Struggling with troubleshooting

Post image

I’m trying to code this so the asset disappears when I press the Q key. I can’t figure out how to solve this error. Please help.

1 Upvotes

5 comments sorted by

View all comments

Show parent comment

2

u/NullIfEmpty Feb 26 '26

In js you can declare a function within a function. That isn’t an issue.