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"); }
1 Answer
+ 2
Nevermind, I found a work around!