// calculate # of increment steps and individual increments
// Analysis

var min = "blue";
var difRed = -200;
var difGreen = 0;
var difBlue = 100;

This portion of the code creates the variables and initializes them with the test values. This is just one set of test variables. Because this is not being implemented as a function, it is not possible to run multiple tests on the code in a single document. Therefore, to ensure that the code is correct, the code should be executed several times with different values in the test variables.

Close Window