「JavaScript入門」Array.prototype.join()の使い方
サンプルコード
const strCity = “tokyo,oosaka,fukuoka,yokohama"
strCity = strCity.split(',’)
strCity.join(' + ')
strCity値
tokyo + oosaka + fukuoka + yokohama
Coding Changes the World
サンプルコード
const strCity = “tokyo,oosaka,fukuoka,yokohama"
strCity = strCity.split(',’)
strCity.join(' + ')
strCity値
tokyo + oosaka + fukuoka + yokohama