Can someone help me with the code? It is at Active learning: More color choices! https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Building_blocks/conditionals. Below is my code to change the bgColor and textColor. I cannot figure out the error but the code does not work though…
// ADD SWITCH STATEMENT
switch(choice) {
case ‘white’:
update(‘white’, ‘red’);
break;
case ‘black’:
update(‘black’, ‘yellow’);
break;
case ‘purple’:
update( ‘purple’, ‘black’);
break;
case ‘Psychedelic’:
update( ‘grey’, ‘blue’);
break;
case ‘Yellow’:
update(‘yellow’,‘pink)’;
break;
}
}