javascript string concatenation

后端 未结 1 1021
小鲜肉
小鲜肉 2021-01-15 06:04

I know that in php you can do

abc = \'some\';

abc .= \'thing\';

echo abc; will output : something

how to do that in javascript ?

相关标签:
1条回答
  • 2021-01-15 06:40

    try this:

    abc = 'some';
    
    abc += 'thing';
    
    alert(abc);  // will output `something`
    
    0 讨论(0)
提交回复
热议问题