Blue number in Chrome Dev Console?
When you print a string using console.log
you get black output. However, if you print a number the output is blue. See the screenshot bellow (don't mind the lines with 'undefined' value as this is what console.log()
returns by default).
And you are right, your problems with +=
are somehow connected to these colours. You were adding number to a string which resulted in concatenation (53
).