Trying to create layers with a function and want to address those layers later by name. Is that even possible?
Or is my only option to create and store these in an object in window?
this works, but seems less elegant
actually, I answered my own question, and it seems perfectly fine doing it like that
you can also return box as the last statement in createSlider() and assign it to a variable. eg: numberOfColumns = createSlider(1200,224)
Andreas Wahlström yesss! that's it.
Assuming you ended up somewhere near this?
yes, exactly Chad. works like a charm