Aaron Shen
Aaron Shen

Reputation: 8374

What's the meaning of the numbers printed below the message of console.log?

I'm doing some testing in chrome debugger tool, I find some strange numbers are printed below the texts output by console.log: enter image description here

I didn't log in the console, why are they there? what are these numbers? what does it mean?

Upvotes: 2

Views: 406

Answers (1)

Brett DeWoody
Brett DeWoody

Reputation: 62743

The Chrome console logs the value of the last expression executed. In the first example above, the last line, i++; logs 9. In the second example, i+=1; logs 10.

Upvotes: 4

Related Questions