Kevin Powell - CommunityKP-C
Kevin Powell - Communityβ€’2y agoβ€’
160 replies
cat

creating calculator

  let operatorsArray = document.querySelectorAll('.operator')
  function bgColor(a){
  let bgColorValue = window.getComputedStyle(a)
  return bgColorValue.backgroundColor == "white"
}


console.log(operatorsArray.some(bgColor))
Was this page helpful?