const p = document.querySelectorAll('p')
Array.from(p).map(item=>{
  item.style.color = 'red'
})