Hi guys. I’m sorry, I know next to nothing about javascript and I’m muddling my way through it. Would really appreciate your help. I’m trying to make a calculator, one with sort of two mini calculators and then a third that takes the totals from the two and adds them together. Here’s what I’ve got so far:
function startCalc(){
interval = setInterval(“calc()”,1);
}
function calc(){
one = document.autoSumForm.firstBox.value;
two = document.autoSumForm.secondBox.value;
three = document.autoSumForm.thirdBox.value;
four = document.autoSumForm.fourthBox.value = (one * 1) * 1)
4.5);
five = document.autoSumForm.fifthBox.value;
six = document.autoSumForm.sixthBox.value;
seven= document.autoSumForm.seventhBox.value = (five * 1)
eight = document.autoSumForm.eighthBox.value = (four * 1) + (seven
}
function stopCalc(){
clearInterval(interval);
}
Works fine with it’s just the first four (only one calculator) but when I throw in the other two it doesn’t work at all and I don’t understand why.