by toxican · 9y ago · 0 comments
>const keys = document.querySelectorAll('.key');
is provided, but it will trigger an error in the console. As far as the video is concerned this is part of the final code. However, if you look at the starter files, there's a final version of the the code and that line has changed to:
>const keys = Array.from(document.querySelectorAll('.key'));
Which of course works fine. Kind of inconvenient to have to turn to the the source files to learn how to do it right from a video. It may be possible that I just missed a video annotation, which is completely possible given my approach to these kinds of things (code while I watch).