Is there a javascript equivalent of .= for self concatenating?
javascript
Solution
Use `+=`
var s = 'begin';
s += 'ning';
Problem
Rather than doing ``` my_var = my_var+'extra string'; ``` is there a shorthand method like .= in php?
javascript
Use `+=`
var s = 'begin';
s += 'ning';
Rather than doing ``` my_var = my_var+'extra string'; ``` is there a shorthand method like .= in php?