The code in the video contains a lot more than you have here. Your code contains the prototype* for stepperRotate() in the line just above setup() but you don't have the function itself.
There's a link in that youtube that takes you to the code where you will see the function just below loop().
*at least I think it's called a prototype, I never use them, since the IDE doesn't insist on them and afaik takes care of the lack thereof under the hood
Prototype is the correct name and the IDE does generate them behind the scenes. However, this sometimes can cause bizarre compilation errors when that prototype generation process goes awry.
Great, thanks. I did not know the "prototype" code could cause compilation errors down the road.
I got the stepper motor running off of the code from the YouTube video, but I am now looking for code that will last and not lead to compilation errors later. Can you please write the same code but in a way that won't lead to errors later?