Having some trouble with a basic if condition that checks the color of an element...
function adjustColorScheme(element) {
if (element.target.style.color == "#1abc9c"){
// Leave as is
}
else { // Do something }
However, it doesn't seem to be functioning properly. When I use generic names like "Yellow, green, etc" it works fine. Any suggestions or advice?