Blog Preview Card w/ Random BG Color Generator - HTML, CSS, JS

Solution retrospective
It took me a while to figure how to get the complimentary color of the random color that was generated, but eventually I came up with a solution to store each rgb (red, green, and blue) value into an array. Then from there I took each rgb value and subtracted it from 255, which gave me the complimentary color.
What specific areas of your project would you like help with?If you have any suggestions on how I can improve my code, feel free to leave me a comment!
Please log in to post a comment
Log in with GitHubCommunity feedback
No feedback yet. Be the first to give feedback on Dominic's solution.
Join our Discord community
Join thousands of Frontend Mentor community members taking the challenges, sharing resources, helping each other, and chatting about all things front-end!
Join our Discord