0

Can you explain me , how this function works?

function dragStart(){ this.className += ' hold'; setTimeout()) => (this.className = 'invisible'),0); } Full code: https://code.sololearn.com/WHtv7XEBcM4g/?ref=app

14th Jul 2018, 5:11 PM
Red play
Red play - avatar
1 Resposta
+ 3
well, the function changes the class to invisible, which I saw in the CSS changed the element to invisible. Also, the hold class gives the element a border.
17th Mar 2019, 5:11 PM
Adler Vuong
Adler Vuong - avatar