Pergunta de entrevista da empresa HyperGuest

Write a small code snippet to convert the following strings array to an array of the lengths of those strings. var stringsArray=[“banana”, “pillow”, “of”, “dogs”, “machine”]

Resposta da entrevista

Sigiloso

18 de mar. de 2024

stringsArray.map((str) => {return str.length;});