What will be the output on line 1, 9 and 6 for below code snippet?
Do you have output in your mind?
You think it is: Undefined, Sachin Tendulkar, Sachin Tendulkar?
No! That is not the answer.
Just wait for an answer.
The same rule is applicable to line# 10 in figure 1. It will be represented by the engine as shown in figure 2 (line# 11 and 12).
Now try to execute code in figure# 3 and see the outcome.