Today, when I read "JavaScript Dom programming Art", I saw that I was unfamiliar with the + = Connector ( small white one, please do not ridicule)
"+ =" connector, which can be considered as "addition and assignment" (or "stitching and assigning")
For example:
The output is:
In fact, one of the processes of experience is:
var day = new Date ();
var message = "The time I wrote the blog is";
message = Message+day;
Console.log (message);
This process is a concatenation after the assignment of the process, the message and day are stitched into a new string, re-assigned to the message;
We're looking at a second example:
This is a process of adding and assigning values first.
var a = 10;
var B = 20;
A = A+b;
Console.log (a);
Summary: + = connectors, let's take him as a process to complete the "addition and assignment" or "stitching and assigning"!
About the "+ =" Connector for JavaScript