How to use schedule?

for run schedule i need to write component.schedule what is the component, i need to write? why i cant just use schedule() without component?

schedule tasks are scheduled with ComponentScheduler, so it’s tied with components, and for using it, you have to write a custom component script, so that you can run schedule logic with it

The following doc could be helpful

https://docs.cocos.com/creator/manual/en/scripting/component.html
https://docs.cocos.com/creator/manual/en/scripting/scheduler.html