Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Collapse the form section

snowlearner
Kilo Expert

How can we collapse the form section on load.

13 REPLIES 13

so can you load up on variables and setting variable values like that in one line just by comma separation?



var foo = "this", bar = "looks", rotisserie_chicken = "promising";     ?


And because of the way JavaScript treats line-endings, you could do them all on multiple lines with a single "var" keyword:



var foo = "this",


          bar = "looks",


          rotisserie_chicken = "promising";