0

What am I doing wrong?

I looked at the SoloLearn tutorial and I have used these before, but for some reason this code isn't working, why? Code: var _ = function _() { function Timer(func, seconds=1) { seconds = seconds * 1000; setTimeout(func, seconds); } } var x = new _(); x.Timer(HI(),2); function HI() { alert("hi"); }

30th May 2019, 3:39 PM
CALIN BAENEN
CALIN BAENEN - avatar
1 Answer
+ 2
Nevermind, I found a work around!
30th May 2019, 3:50 PM
CALIN BAENEN
CALIN BAENEN - avatar