TG Telegram Group & Channel
JavaScript | United States America (US)
Create: Update:

CHALLENGE

const items = ['apple', 'banana', 'cherry', 'date'];  

const result = items
.map(item => item.toUpperCase())
.filter(item => item.length > 5)
.reduce((acc, item, index) => {
return acc + (index === 0 ? '' : '-') + item.slice(0, 3);
}, '');

console.log(result);

CHALLENGE

const items = ['apple', 'banana', 'cherry', 'date'];  

const result = items
.map(item => item.toUpperCase())
.filter(item => item.length > 5)
.reduce((acc, item, index) => {
return acc + (index === 0 ? '' : '-') + item.slice(0, 3);
}, '');

console.log(result);
2


>>Click here to continue<<

JavaScript




Share with your best friend
VIEW MORE

United States America Popular Telegram Group (US)