JavaScript from Null: Chapter 4

preview_player
Показать описание
JavaScript University continues today as we learn about methods of the Array object, how to return values from functions, scope, and even your first animation.
Рекомендации по теме
Комментарии
Автор

Jeffrey, as you saw, setInterval will never stop calling unnamed function, and opacity wil decrease to - infinity, so you should have stored setInterval int a variable end if(elem.style.opacity<=0) clearInterval(var);

vladeradulovic