In JavaScript, there are some additional assignment operators that we can use in addition to the normal equal sign. There are several, but the most common are addition/subtraction assignment operators. Here is an example…
let startYear = 2011;
startYear += 10;
The output of startYear would be 2021. We could do the same thing with -=.
Happy Coding!
Clay Hess