Arrow Function
// Regular Function With Map
const upperizedNames = ["Dimas", "Widy", "Buchori"]
.map(function(name) {
return name.toUpperCase();
})
console.log(...upperizedNames);
/* output:
DIMAS WIDY BUCHORI
*/INFO
// Regular Function With Map
const upperizedNames = ["Dimas", "Widy", "Buchori"]
.map(function(name) {
return name.toUpperCase();
})
console.log(...upperizedNames);
/* output:
DIMAS WIDY BUCHORI
*/