For me it would be C to A,
b.propX turns to false so it triggers doWhatever() which is topmost Item then triggers doAnything() and finally doSomething since it comes after b.propX = false.
To make sure you could have your functions as followed :
function doSomething()
{
console.log( "doSomething" )
}
function doAnything()
{
console.log( "doAnything" )
}
function doWhatever()
{
console.log( "doWhatever" )
}
This way you can actually see what is the order and if it is always the same
↧