JS
challenger
Home
Intermediate JavaScript
array methods
Return the Length of Each Word Using map
Return the Length of Each Word Using map
Given an array of words, create a new array that contains the length of each word. Use the map method to transform the array.
Premium
reset
function greet(name) { return `Hello, ${name}!`; } console.log(greet("Erik"));
JavaScript
Run Code
Console