Problems in the use of requestAnimationFrame

purpose: click the button to return to the top
Code:

timer = requestAnimation(function fn(){
    //....
    timer = requestAnimation(fn)
})

question: can function fn () be abbreviated, such as

like = >
Dec.21,2021
Menu