Chrome DevTools: what does this arrow (<-) mean?

I am confused with this character (<-) in Chrome DevTools

javascript while loop in DevTools Console

Returns a value or console value?

When I run this while loop

var i = 0;
while (i < 5) {
    console.log(i);
    i++;
}

console log splashes 4 times two, last 4 have (<-) in front, what's the point?

+3
source share
1 answer

This is due to the nature of the function eval. Note:

var i = 0, j = while(i < 5) { i++; };

Compiles. Nonetheless,

var i = 0, j = eval('while(i < 5) { i++; }');

Assigns a value 4 j. Why is this? Quote from MDN :

eval() returns the value of the last evaluated expression.

, console.log , eval -ed, i++.

+6

All Articles