data-book-codes
data-book-codes copied to clipboard
第 4 节习题
- 将数组
[ 1, 2, 3, 4, 5 ]转换为[ 'a1', 'a2', 'a3', 'a4', 'a5' ]; - 将数组
[ 1, 2, 3, 4, 5 ]转换为[ 'a1', 'b2', 'c3', 'd4', 'e5' ]; - 将数组
[ 1, 2, 3, 4, 5 ]转换为[ 1, 4, 9, 16, 25 ]; - 查询 JavaScript 中
Array.prototype.map方法的详细文档,并将数组[ 0, 0, 0, 0, 0 ]转换为[ 'A', 'B', 'C', 'D', 'E' ]; - 提取数组
[ 1, 2, 3, 4, 5 ]中的[ 2, 3, 4 ]。