+ 3
Hi guys, find errors in code. It is not showing the output
2 Answers
+ 2
if (packageWeight<"2.5") {
additinalCharge="2";
} else if (packageWeight>"2.5") {
if (packageWeight<"5")
additinalCharge= "3";
else{
if(packageWeight>"5")
additinalCharge= "4";
}
}
The above piece of code was missing some if else and curly brackets which I have added,
Also i get another error afterwards, that there is no function like parsefloat
+ 1
Abhay where to add parsefloat