// Solution #1 <---------------->
function stringLengths(str1, str2, str3, str4)
{
return [...arguments].map(x => x.length);
}
console.log(stringLengths("hello", "cruel", "world", "of", "darkness"));
// Solution #2 <----------> BEST SOLUTION
function stringLengths(...strings){
return strings.map(string => string.length);
}
console.log(stringLengths("","something","something else"))