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?
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?