Random Plus explainer

The aim of this puzzle: To create 3 by 3 box with a ‘+’ pattern of a random color
Walkthrough of the solution: You need draw 9 boxes: all the corners should be white, and the other 5 boxes should be a randomly chosen color. If you were to number the boxes in order: 1, 3, 7, and 9 are white, and 2, 4, 5, 6, and 8 are the mystery color. Start by choosing the random color with pickRandom(color). You can store it in a variable called x. Then you use drawBox() and newLine() to create the pattern. The first row of boxes would be: drawBox(white); drawBox(x); drawBox('white');
Sample code solution:
(Tap below to reveal)

var x= pickRandom(color);
drawBox(white);
drawBox(x);
drawBox(white);
newLine();
drawBox(x);
drawBox(x);
drawBox(x);
newLine();
drawBox(white);
drawBox(x);
drawBox(white);

JavaScript Concepts: Calling Functions, Identifiers, Variable Declaration
Grasshopper Concepts: drawBox(), newLine(), pickRandom()