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
  • 959,406
  • 173
  • 1,780
  • 1,769
Seven Systems
  • 97
  • 2
  • 12

0 Answers0