The operator += is one that I have seen a lot in JavaScript and I have absolutely no idea what it does. Can someone simply define what it is and how I would use it in JavaScript? I found this example and I don't understand what is happening.
var message = "";
if (document.getElementById("x") == "") {
message += "You must enter your last name."
}