Files
  • index.js
index.js
1
2
3
4
5
6
7
8
const numArray =  [1,2,3,4,5]

const newArray = numArray.map(number => `<div> here is the number this time ${number} </div>`)

newArray
numArray

node v10.15.2 linux/amd64