I have a drop down menu that has the options 1,2,3,4 (the actual number). I want to create 12 variables a1, a2, a3, a4 and b1, b2, b3, b4 so that c1 = a1 + b1, c2 = a2 + b2, c3=.... Is this possible in javascript?
var a = "a";
var b = "b";
var drop = Number(document.getElementById("drop").value);
for (var i = 0; i <= drop; i++) {
alert([i]);
a.name.replace("",i);
alert();
};