Quote (carteblanche @ Nov 12 2015 11:26pm)
i get that. i posted 4 questions. answer them. if you answer yes to them all, provide the values for these variables:
type
newline
toppings
sum
and i dont mean "run this in your
mind and tell me the values". i mean
run your program and tell me these values. you can use a debugging tool, logging, alert statements, or whatever else you prefer.
my point is that you're thinking the innerHTML is not working. however, i dont think that's the case. i think it's a problem before it ever gets to that line, but you haven't tested your code so you don't know what the problem is.
just glancing at it, i can already tell you this will fail under a scenario, so it will never even try to print your stuff
Code
var length = toppings.length;
Quote (carteblanche @ Nov 12 2015 11:26pm)
i get that. i posted 4 questions. answer them. if you answer yes to them all, provide the values for these variables:
type
newline
toppings
sum
and i dont mean "run this in your
mind and tell me the values". i mean
run your program and tell me these values. you can use a debugging tool, logging, alert statements, or whatever else you prefer.
my point is that you're thinking the innerHTML is not working. however, i dont think that's the case. i think it's a problem before it ever gets to that line, but you haven't tested your code so you don't know what the problem is.
just glancing at it, i can already tell you this will fail under a scenario, so it will never even try to print your stuff
Code
var length = toppings.length;
Thanks for your help mate. I really appreciate your time. It's due in the morning and I'm completely stumped. I tired answering your questions and really can't figure it out. I'll just have to speak with my teacher tomorrow and take a late grade. Being new at this sucks, but I've learned a good deal tonight. I'll keep plugging away tonight at your suggestions. Thanks again!
This post was edited by Zom8 on Nov 12 2015 11:07pm