0

I'm declaring an object literal like

object = { a: func1(), b: func2() }

func1 has to be executed before func2.

Are func1 and func2 guaranteed to be executed in the order they're called in the object declaration?

T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
Seven Systems
  • 127
  • 3
  • 13

0 Answers0