Home > front end >  Why is the let play behind write=()=>?
Why is the let play behind write=()=>?

Time:09-18

Let play=()=& gt; {

Window. The clearTimeout (time);

Playsound ();

If (isPlay) {

Time window.=setTimeout (play, Math. Floor (60000/speed));

};

}

CodePudding user response:

()=& gt; New arrow es6 function {}
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions

CodePudding user response:

reference 1/f, the sky wave response:
()=& gt; New arrow es6 function {}
https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Functions/Arrow_functions

Understand, thank you very much!
  • Related