How to classify array numbers as even, odd and prime and assign them colors to style divs in Javascript?

后端 未结 0 497
小蘑菇
小蘑菇 2020-12-28 23:41

I\'m working on a challenge where I need to check what numbers of array are even, odd and prime. Then they need to be assigned different color each. What I came up with so f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题