const text = 'apple,banana,cherry';
const arr = text.split(',');
const joined = arr.join(' - ');
console.log(joined);
WebDEV #test #Frontend
Выберите правильный вариант 👇🏼
WE WebDEV @webb_dev · 8.3K subscribers const text = 'apple,banana,cherry';
const arr = text.split(',');
const joined = arr.join(' - ');
console.log(joined);