Color Detector explainer

The aim of this puzzle: Create two if statements to check the variable ‘randomColor’ against your chosen favorite color.
Walkthrough of the solution: For this puzzle, you’ll need to create two if statements. Inside the condition () of one of the if statements you should check to see if randomColor is equal to === your chosen color (i.e. blue). In the other if statement, you should check to see if randomColor is not equal to !== your chosen color. Within the blocks {} of your if statements you should draw a box of your favorite color or print out a statement saying randomColor is not your favorite color.
Sample code solution:
(Tap below to reveal)

if (randomColor === blue) {
if (randomColor !== blue) {
  print(randomColor + ' is not my favorite color!')

JavaScript Concepts: Binary Expression, Code Block (if statement), Calling Functions, Conditionals, Identifiers
Grasshopper Concepts: drawBox(), print()