Lesson 3 JavaScript Function & Scope - can someone help ? :)


#1


Hi, I am blocked at JavaScript lesson 3 on functions, last section.



My code runs forever, doesn't validate my exercise. It seems this is the part of my code which is wrong. Could you help...? Thanks !

function getTotal(){
  return getSubtotal(orderCount)+getTax();
}


#2

Hi, maybe there's some infinite loop or something like that, care to share the complete code? Thanks.


#3

Thanks for the help. I didn't know but when you fail an exercice 4 or 5 times. They give you the correct code.
While the code they gave me was no different from the one I wrote, it now seems to work.
Strange. But thanks really for your help


#4

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.