I see, so you just typed out the code from what's shown on the video:
but the video doesn't show the entire code. Notice how the scroll bar on their screen still has a ways to go before the bottom. It always annoys me when Youtubers do this sort of thing. They also have a bug in their code from an extra closing brace, but it looks like you spotted that and fixed it in your own code.