「JavaScript入門」Array.prototype.join()の使い方

サンプルコード
const strCity = “tokyo,oosaka,fukuoka,yokohama"
strCity = strCity.split(',’)
strCity.join(' + ')

strCity値
tokyo + oosaka + fukuoka + yokohama

JavaScript

Posted by arkgame