var apple = 20;
var banana = 18;
var peach = apple-banana;
if ((banana*apple) > 360){
document.write("<h3> (banana*apple) is greater than 360 </h3>");
}
else {
document.write("<h3> (banana*apple) is less than 360 </h3>");
So the point was trying to see what’s gonna happen when the value is equal to 360? But what I got from my web-page shows (banana*apple) is less than 360.
Since I didn’t execute = in this statement… Shouldn’t the web not show up anything instead of saying it’s less than 360? Because 20*18 =360 …
Please enlight me, much appreciated during this crazy adventure since starting this course!