Hello, How I can write the following code in a for loop?
if (theF.red.checked) {
cost += parseFloat(theF.red.value);
}
if (theF.yellow.checked) {
cost += parseFloat(theF.yellow.value);
}
if (theF.blue.checked) {
cost += parseFloat(theF.blue.value);
}
