Files
  • index.js
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const numArray = [1, 2, 3, 4, 5, 6]

const newNumArray = numArray.map(num => `<div> ${num * 5} </div>`)

console.log(newNumArray)


const catsIveOwned = [
  {name:"Bongo",
  breed:"domestic calico"},
  {name:"conga",
  breed:"domestic"},
  {name: "lily",
  breed: "stray"}
]
fetch('https://dog.ceo/api/breeds/image/random/3')
  .then(res=> res.json())
  .then(data => console.log(data.message))
node v10.15.2 linux/amd64