几个直接的方法
let a = 'java',
b = 'script',
c = ''+a+b+'', // 或者
d = ""+a+b+""
console.log(c, d) // javascript javascript
/* 注意:外层包裹与内层包裹引号需要一样,即都是单引号或都是双引号 */
let e = 'type',
f = 'script'
g = e + f,
h = `${e}${f}`
console.log(g, h) // typescript typescript
let i = 'angular',
j = '.js',
k = i.concat(j)
console.log(k) // angular.js
let l = 'react',
m = '.js',
n = ''
n += l
n += m
console.log(n) //react.js