Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

join javascript array

const cities = ['London', 'Paris', 'Tokyo'];
const joinedCities = cities.join('-');

console.log(joinedCities); // London-Paris-Tokyo
Source by learn.coderslang.com #
 
PREVIOUS NEXT
Tagged: #join #javascript #array
ADD COMMENT
Topic
Name
2+7 =