📅  最后修改于: 2022-03-11 14:47:50.582000             🧑  作者: Mango
var words = ['Hello', 'world'];
var lengths = words.map(function(word) {
return word + ' = ' + word.length;
});
console.log(lengths);