what does += mean in JavaScript April 12, 2023 by wordlinkanswers what does += mean in JavaScript Comment 7 /* += Add a value to a variable and<br /> store the result as that same variable.<br /> */</p> <p>// The standard syntax:<br /> let a = 2;<br /> a = a + 3; // → 5</p> <p>// The += shorthand:<br /> let b = 7;<br /> b += 3; // → 10</p> <p>/* In JavaScript, the “+” operator can also<br /> concatenate (join together) strings. */</p> <p>// The standard syntax:<br /> let greeting = “Hello,”;<br /> greeting = greeting + ” world”; // → “Hello, world”</p> <p>// The += shorthand:<br /> let farewell = “Goodbye,”;<br /> farewell += ” world”; // → “Goodbye, world” Popularity 10/10 Helpfulness 4/10 Language javascript Source: WorldLinkAnswers Tags: javascript mean Share Link to this answer Share Contributed on Feb 18 2020 Intra 0 Answers Avg Quality 2/10