Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript trying to create an elevator simulation but timing won't work Reply To: trying to create an elevator simulation but timing won't work

#169010
fredtbx
Participant

Right nkrisc, that was somebodys edit from Stack Overflow that I put in there. My original is in this latest fiddle, http://jsfiddle.net/Nr5G5/5/. I’m using an array to change the top value in line 11.
In the first fiddle, they said to // Create an IIFE to capture the value, between lines 8 and 9, which I think would have supplied top. I’m new to IIFE’s.